|
RTP Audio System
2.0.0
|
MP3 Audio Reader. More...
#include <mp3audioreader.h>
Public Member Functions | |
| MP3AudioReader (const char *name=NULL) | |
| ~MP3AudioReader () | |
| bool | openMedia (const char *name) |
| void | closeMedia () |
| bool | ready () const |
| void | getMediaInfo (MediaInfo &mediaInfo) const |
| MediaError | getErrorCode () const |
| card64 | getPosition () const |
| card64 | getMaxPosition () const |
| void | setPosition (const card64 position) |
| cardinal | getNextBlock (void *buffer, const cardinal blockSize) |
Private Member Functions | |
| bool | initialize (char *filename) |
| bool | setsoundtype (int stereo, int samplesize, int speed) |
| void | set8bitmode () |
| bool | putblock (void *buffer, int size) |
| int | putblock_nt (void *buffer, int size) |
| void | releasedevice () |
| bool | attachdevice () |
| bool | readNextFrame () |
Private Attributes | |
| Mpegtoraw * | MP3Decoder |
| Soundinputstreamfromfile * | MP3Source |
| cardinal | BufferPos |
| cardinal | BufferSize |
| double | FramesPerSecond |
| card64 | Position |
| card64 | MaxPosition |
| MediaError | Error |
| char | Buffer [RAWDATASIZE *sizeof(short int)] |
MP3 Audio Reader.
This class is a reader for MP3 audio files.
| MP3AudioReader::MP3AudioReader | ( | const char * | name = NULL | ) |
Constructor.
| name | Name of MP3 file or NULL. |
Destructor.
| bool MP3AudioReader::attachdevice | ( | ) | [private] |
| void MP3AudioReader::closeMedia | ( | ) | [virtual] |
closeMedia() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| MediaError MP3AudioReader::getErrorCode | ( | ) | const [virtual] |
getErrorCode() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| card64 MP3AudioReader::getMaxPosition | ( | ) | const [virtual] |
getMaxPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| void MP3AudioReader::getMediaInfo | ( | MediaInfo & | mediaInfo | ) | const [virtual] |
getMediaInfo() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| cardinal MP3AudioReader::getNextBlock | ( | void * | buffer, |
| const cardinal | blockSize | ||
| ) | [virtual] |
getNextBlock() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| card64 MP3AudioReader::getPosition | ( | ) | const [virtual] |
getPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| bool MP3AudioReader::initialize | ( | char * | filename | ) | [private] |
| bool MP3AudioReader::openMedia | ( | const char * | name | ) | [virtual] |
openMedia() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| bool MP3AudioReader::putblock | ( | void * | buffer, |
| int | size | ||
| ) | [private] |
| int MP3AudioReader::putblock_nt | ( | void * | buffer, |
| int | size | ||
| ) | [private] |
| bool MP3AudioReader::readNextFrame | ( | ) | [private] |
| bool MP3AudioReader::ready | ( | ) | const [virtual] |
ready() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| void MP3AudioReader::releasedevice | ( | ) | [private] |
| void MP3AudioReader::set8bitmode | ( | ) | [private] |
| void MP3AudioReader::setPosition | ( | const card64 | position | ) | [virtual] |
setPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
| bool MP3AudioReader::setsoundtype | ( | int | stereo, |
| int | samplesize, | ||
| int | speed | ||
| ) | [private] |
char MP3AudioReader::Buffer[RAWDATASIZE *sizeof(short int)] [private] |
cardinal MP3AudioReader::BufferPos [private] |
cardinal MP3AudioReader::BufferSize [private] |
MediaError MP3AudioReader::Error [private] |
double MP3AudioReader::FramesPerSecond [private] |
card64 MP3AudioReader::MaxPosition [private] |
Mpegtoraw* MP3AudioReader::MP3Decoder [private] |
Soundinputstreamfromfile* MP3AudioReader::MP3Source [private] |
card64 MP3AudioReader::Position [private] |