Public Methods |
| AudioFile (const char *fname, unsigned long samples=0) |
| AudioFile (const char *fname, audioinfo_t *info, unsigned long min=0) |
| AudioFile () |
| ~AudioFile () |
void | Open (const char *fname) |
void | Create (const char *fname, audioinfo_t *info) |
void | Close (void) |
int | getBuffer (void *addr, unsigned len) |
int | putBuffer (void *attr, unsigned len) |
audioerror_t | getSamples (void *addr, unsigned samples) |
audioerror_t | putSamples (void *addr, unsigned samples) |
audioerror_t | Skip (long samples) |
audioerror_t | setPosition (unsigned long samples=~0l) |
audioerror_t | getInfo (audioinfo_t *info) |
audioerror_t | setMinimum (unsigned long samples) |
unsigned long | getPosition (void) |
virtual bool | isOpen (void) |
virtual bool | hasPositioning (void) |
audioencoding_t | getEncoding (void) |
audioformat_t | getFormat (void) |
unsigned | getSampleRate (void) |
char * | getAnnotation (void) |
audioerror_t | getError (void) |
bool | operator! (void) |
Protected Methods |
virtual bool | afCreate (const char *path) |
virtual bool | afOpen (const char *path) |
virtual bool | afPeek (unsigned char *data, unsigned size) |
virtual int | afRead (unsigned char *data, unsigned size) |
virtual int | afWrite (unsigned char *data, unsigned size) |
virtual bool | afSeek (unsigned long pos) |
virtual void | afClose (void) |
virtual char * | getContinuation (void) |
audioerror_t | setError (audioerror_t err) |
unsigned short | getaushort (unsigned char *data) |
void | setaushort (unsigned char *data, unsigned short value) |
unsigned long | getaulong (unsigned char *data) |
void | setaulong (unsigned char *data, unsigned long value) |
Protected Attributes |
ost::AudioFile:: { ... } | file |
int | fd |
void * | handle |
This class provides file level access to audio data stored in different formats. This class also provides the ability to write audio data into a disk file.