Public Member Functions | |
BufferStream (SampleBuffer *buffer) | |
void | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format) |
int | doRead (int frame_count, void *buffer) |
void | reset () |
bool | isSeekable () |
int | getLength () |
void | setPosition (int position) |
int | getPosition () |
Definition at line 10 of file sample_buffer.cpp.
|
Definition at line 12 of file sample_buffer.cpp. References audiere::SampleBuffer::getFormat(), and audiere::GetSampleSize(). |
|
Implement this method in subclasses.
Implements audiere::BasicSource. Definition at line 37 of file sample_buffer.cpp. |
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 28 of file sample_buffer.cpp. |
|
Reimplemented from audiere::BasicSource. Definition at line 54 of file sample_buffer.cpp. |
|
Returns the current position within the sample source.
Reimplemented from audiere::BasicSource. Definition at line 56 of file sample_buffer.cpp. |
|
Reimplemented from audiere::BasicSource. Definition at line 53 of file sample_buffer.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 48 of file sample_buffer.cpp. |
|
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 55 of file sample_buffer.cpp. |