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


Public Methods | |
| 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 |
Protected Methods | |
| ~SampleSource () | |
This interface is not synchronized.
Definition at line 231 of file audiere.h.
|
|
|
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implemented in audiere::FLACInputStream, audiere::MODInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::WhiteNoise, audiere::PinkNoise, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, audiere::SquareWave, and audiere::SineWave. Referenced by audiere::DSOutputStream::DSOutputStream(), audiere::OALAudioDevice::openStream(), and audiere::DSAudioDevice::openStream(). |
|
|
Implemented in audiere::FLACInputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, and audiere::UnseekableSource. |
|
|
Returns the current position within the sample source.
Implemented in audiere::FLACInputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, and audiere::UnseekableSource. |
|
|
Implemented in audiere::FLACInputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, and audiere::UnseekableSource. |
|
||||||||||||
|
Read frame_count samples into buffer. buffer must be at least |frame_count * GetSampleSize(format) * channel_count| bytes long.
Implemented in audiere::FLACInputStream, audiere::MODInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::WhiteNoise, audiere::PinkNoise, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, audiere::SquareWave, and audiere::SineWave. |
|
|
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. Implemented in audiere::FLACInputStream, audiere::MODInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::WhiteNoise, audiere::PinkNoise, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, audiere::SquareWave, and audiere::SineWave. |
|
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Implemented in audiere::FLACInputStream, audiere::OGGInputStream, audiere::WAVInputStream, audiere::RepeatableStream, audiere::Resampler, audiere::BufferStream, and audiere::UnseekableSource. |
1.2.17