#include <input_mp3.h>
Inheritance diagram for audiere::MP3InputStream:
Public Member Functions | |
MP3InputStream () | |
~MP3InputStream () | |
bool | initialize (FilePtr file) |
void | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format) |
int | doRead (int frame_count, void *samples) |
void | reset () |
bool | isSeekable () |
int | getLength () |
void | setPosition (int position) |
int | getPosition () |
Definition at line 12 of file input_mp3.h.
|
Definition at line 16 of file input_mp3.cpp. References audiere::SF_S16. |
|
Definition at line 36 of file input_mp3.cpp. |
|
Implement this method in subclasses.
Implements audiere::BasicSource. Definition at line 158 of file input_mp3.cpp. References ADR_GUARD, audiere::GetFrameSize(), and audiere::QueueBuffer::getSize(). |
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 146 of file input_mp3.cpp. |
|
Reimplemented from audiere::BasicSource. Definition at line 141 of file input_mp3.cpp. |
|
Returns the current position within the sample source.
Reimplemented from audiere::BasicSource. Definition at line 97 of file input_mp3.cpp. |
|
Definition at line 46 of file input_mp3.cpp. References audiere::File::BEGIN, audiere::File::END, and reset(). |
|
Reimplemented from audiere::BasicSource. Definition at line 92 of file input_mp3.cpp. |
|
Reset the sample source. This has the same effect as setPosition(0) on a seekable source. On an unseekable source, it resets all internal state to the way it was when the source was first created. Implements audiere::SampleSource. Definition at line 197 of file input_mp3.cpp. References ADR_GUARD, audiere::File::BEGIN, and audiere::QueueBuffer::clear(). Referenced by initialize(), and setPosition(). |
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Reimplemented from audiere::BasicSource. Definition at line 102 of file input_mp3.cpp. References audiere::File::BEGIN, and reset(). |