#include <resampler.h>
Inheritance diagram for audiere::Resampler:


Public Methods | |
| Resampler (SampleSource *source, int rate) | |
| void ADR_CALL | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format) |
| 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 () |
| void | setPitchShift (float shift) |
| float | getPitchShift () |
|
||||||||||||
|
Definition at line 6 of file resampler.cpp. |
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 21 of file resampler.cpp. References audiere::hidden::sample_format, audiere::SampleFormat, and audiere::SF_S16. |
|
|
Implements audiere::SampleSource. Definition at line 154 of file resampler.cpp. |
|
|
Definition at line 176 of file resampler.cpp. |
|
|
Returns the current position within the sample source.
Implements audiere::SampleSource. Definition at line 166 of file resampler.cpp. |
|
|
Implements audiere::SampleSource. Definition at line 149 of file resampler.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 32 of file resampler.cpp. References audiere::u16. |
|
|
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 74 of file resampler.cpp. |
|
|
Definition at line 171 of file resampler.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 159 of file resampler.cpp. |
1.2.17