#include <AmAudio.h>
Inheritance diagram for AmAudioFile:

Public Types | |
| Read = 1 | |
| Write = 2 | |
| enum | OpenMode { Read = 1, Write = 2 } |
Public Member Functions | |
| int | open (const string &filename, OpenMode mode, bool is_tmp=false) |
| int | fpopen (const string &filename, OpenMode mode, FILE *n_fp) |
| void | rewind () |
| void | close () |
| void | on_close () |
| FILE * | getfp () |
| OpenMode | getMode () |
| int | getDataSize () |
| string | getMimeType () |
| void | setCloseOnDestroy (bool cod) |
Data Fields | |
| AmSharedVar< bool > | loop |
Protected Member Functions | |
| int | read (unsigned int user_ts, unsigned int size) |
| int | write (unsigned int user_ts, unsigned int size) |
| AmAudioFileFormat * | fileName2Fmt (const string &name) |
Protected Attributes | |
| FILE * | fp |
| long | begin |
| amci_inoutfmt_t * | iofmt |
| int | open_mode |
| int | data_size |
| bool | on_close_done |
| bool | close_on_exit |
Open mode.
| void AmAudioFile::close | ( | ) | [virtual] |
Closes the file.
Reimplemented from AmAudio.
| AmAudioFileFormat * AmAudioFile::fileName2Fmt | ( | const string & | name | ) | [protected] |
| int AmAudioFile::getDataSize | ( | ) | [inline] |
Gets data size in the current file
| FILE* AmAudioFile::getfp | ( | ) | [inline] |
be carefull with this one ;-)
| string AmAudioFile::getMimeType | ( | ) |
| void AmAudioFile::on_close | ( | ) |
Executes the handler's on_close.
| int AmAudioFile::open | ( | const string & | filename, | |
| OpenMode | mode, | |||
| bool | is_tmp = false | |||
| ) |
Opens a file.
| filename | Name of the file. | |
| mode | Open mode. |
| int AmAudioFile::read | ( | unsigned int | user_ts, | |
| unsigned int | size | |||
| ) | [protected, virtual] |
| void AmAudioFile::rewind | ( | ) |
Rewind the file.
| int AmAudioFile::write | ( | unsigned int | user_ts, | |
| unsigned int | size | |||
| ) | [protected, virtual] |
int AmAudioFile::data_size [protected] |
Size of datas having been read/written until now.
FILE* AmAudioFile::fp [protected] |
Pointer to the file opened as last.
amci_inoutfmt_t* AmAudioFile::iofmt [protected] |
int AmAudioFile::open_mode [protected] |
Open mode.
1.4.7