#include <audiere.h>
Inheritance diagram for audiere::SampleSource:

Public Member Functions | |
| virtual void ADR_CALL | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format)=0 |
| virtual int ADR_CALL | read (int frame_count, void *buffer)=0 |
| virtual void ADR_CALL | reset ()=0 |
| virtual bool ADR_CALL | isSeekable ()=0 |
| virtual int ADR_CALL | getLength ()=0 |
| virtual void ADR_CALL | setPosition (int position)=0 |
| virtual int ADR_CALL | getPosition ()=0 |
| virtual bool ADR_CALL | getRepeat ()=0 |
| virtual void ADR_CALL | setRepeat (bool repeat)=0 |
This interface is not synchronized.
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. |
|
|
|
|
|
Returns the current position within the sample source.
|
|
|
|
|
|
|
|
||||||||||||
|
Read frame_count samples into buffer. buffer must be at least |frame_count * GetSampleSize(format) * channel_count| bytes long.
|
|
|
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. |
|
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
|
|
|
Sets whether the sample source should repeat or not. Note that not all sample sources repeat by starting again at the beginning of the sound. For example MOD files can contain embedded loop points.
|
1.4.6-NO