RTP Audio System  2.0.0
MP3AudioReader Class Reference

MP3 Audio Reader. More...

#include <mp3audioreader.h>

Inheritance diagram for MP3AudioReader:
AudioReaderInterface AudioQuality AudioQualityInterface AdjustableAudioQualityInterface AudioQualityInterface

List of all members.

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)]

Detailed Description

MP3 Audio Reader.

This class is a reader for MP3 audio files.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

MP3AudioReader::MP3AudioReader ( const char *  name = NULL)

Constructor.

Parameters:
nameName of MP3 file or NULL.

Member Function Documentation

bool MP3AudioReader::attachdevice ( ) [private]
void MP3AudioReader::getMediaInfo ( MediaInfo mediaInfo) const [virtual]
cardinal MP3AudioReader::getNextBlock ( void *  buffer,
const cardinal  blockSize 
) [virtual]
bool MP3AudioReader::initialize ( char *  filename) [private]
bool MP3AudioReader::openMedia ( const char *  name) [virtual]
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]
void MP3AudioReader::releasedevice ( ) [private]
void MP3AudioReader::set8bitmode ( ) [private]
void MP3AudioReader::setPosition ( const card64  position) [virtual]
bool MP3AudioReader::setsoundtype ( int  stereo,
int  samplesize,
int  speed 
) [private]

Member Data Documentation

char MP3AudioReader::Buffer[RAWDATASIZE *sizeof(short int)] [private]
Mpegtoraw* MP3AudioReader::MP3Decoder [private]
Soundinputstreamfromfile* MP3AudioReader::MP3Source [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines