class AudioFactory

This class represents a kind of "factory" which creates all plattform dependend objects

Public Methods

static AudioData* openFile(string filename)
creates an AudioData object for the audio file having the given name

Private Methods

static bool isAuFile(string filename)
check if the file suffix is SUN-au suffix
static bool isWavFile(string filename)
check if the file suffix is WAV suffix

Documentation

This class represents a kind of "factory" which creates all plattform dependend objects. So the user of aulib++ does not need to take care of Alpha-Unix, SUN-Solaris, MS-DOS etc.
AudioFactory can also create AudioData objects for audio files. The user does not need to know if they are SUN-au, WAV or somethig else.
static AudioData* openFile(string filename)
creates an AudioData object for the audio file having the given name. The user does not need to know if it is SUN-au, WAV or something else.
Returns:
object representing the audio file Exception, if format is unknown or if reading faild.
Parameters:
filename - name of an audio file

static bool isAuFile(string filename)
check if the file suffix is SUN-au suffix.
Returns:
true if the file has SUN-au suffix
Parameters:
filename - name of a file

static bool isWavFile(string filename)
check if the file suffix is WAV suffix.
Returns:
true if the file has WAV suffix
Parameters:
filename - name of a file


This class has no child classes.
Author:
Silvia Pfeiffer, Peter Tomczyk
Version:
$Id: aufactor.h,v 1.3 1998/01/12 12:49:32 tomczyk Exp $

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de