#include <repeatable.h>
Inheritance diagram for audiere::RepeatableStream:


Public Methods | |
| RepeatableStream (SampleSource *source) | |
| void | setRepeat (bool repeat) |
| bool | getRepeat () |
| void ADR_CALL | getFormat (int &channel_count, int &sample_rate, SampleFormat &bits_per_sample) |
| int ADR_CALL | read (int frame_count, void *buffer) |
| void ADR_CALL | reset () |
| bool ADR_CALL | isSeekable () |
| int ADR_CALL | getLength () |
| void ADR_CALL | setPosition (int position) |
| int ADR_CALL | getPosition () |
|
|
Definition at line 7 of file repeatable.cpp. References audiere::GetSampleSize(), audiere::hidden::sample_format, and audiere::SampleFormat. |
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 32 of file repeatable.cpp. References audiere::hidden::sample_format, and audiere::SampleFormat. |
|
|
Implements audiere::SampleSource. Definition at line 90 of file repeatable.cpp. |
|
|
Returns the current position within the sample source.
Implements audiere::SampleSource. Definition at line 102 of file repeatable.cpp. |
|
|
Definition at line 26 of file repeatable.cpp. |
|
|
Implements audiere::SampleSource. Definition at line 84 of file repeatable.cpp. |
|
||||||||||||
|
Read frame_count samples into buffer. buffer must be at least |frame_count * GetSampleSize(format) * channel_count| bytes long.
Implements audiere::SampleSource. Definition at line 42 of file repeatable.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 78 of file repeatable.cpp. |
|
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Implements audiere::SampleSource. Definition at line 96 of file repeatable.cpp. |
|
|
Definition at line 20 of file repeatable.cpp. |
1.2.17