#include <resampler.h>
Inheritance diagram for audiere::Resampler:
Public Member Functions | |
Resampler (SampleSource *source, int rate) | |
void | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format) |
int | read (int frame_count, void *buffer) |
void | reset () |
bool | isSeekable () |
int | getLength () |
void | setPosition (int position) |
int | getPosition () |
bool | getRepeat () |
void | setRepeat (bool repeat) |
int | getTagCount () |
const char * | getTagKey (int i) |
const char * | getTagValue (int i) |
const char * | getTagType (int i) |
void | setPitchShift (float shift) |
float | getPitchShift () |
Definition at line 14 of file resampler.h.
|
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::SF_S16. |
|
Implements audiere::SampleSource. Definition at line 162 of file resampler.cpp. |
|
Definition at line 205 of file resampler.cpp. |
|
Returns the current position within the sample source.
Implements audiere::SampleSource. Definition at line 174 of file resampler.cpp. References audiere::DUMB_RESAMPLER::pos. |
|
Implements audiere::SampleSource. Definition at line 184 of file resampler.cpp. |
|
Returns number of metadata tags present in this sample source.
Implements audiere::SampleSource. Definition at line 194 of file resampler.cpp. |
|
Returns the key of the i'th tag in the source. If the tag is "author=me", the key is "author". Implements audiere::SampleSource. Definition at line 195 of file resampler.cpp. |
|
Returns the type of the i'th tag in the source. The type is where the tag comes from, i.e. "ID3v1", "ID3v2", or "vorbis". Implements audiere::SampleSource. Definition at line 197 of file resampler.cpp. |
|
Returns the value of the i'th tag in the source. If the tag is "author=me", the value is "me". Implements audiere::SampleSource. Definition at line 196 of file resampler.cpp. |
|
Implements audiere::SampleSource. Definition at line 157 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 ADR_ASSERT, audiere::clamp(), audiere::DUMB_RESAMPLER::dir, audiere::dumb_resample(), audiere::DUMB_RESAMPLER::end, audiere::DUMB_RESAMPLER::pos, audiere::DUMB_RESAMPLER::start, and audiere::DUMB_RESAMPLER::subpos. |
|
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 81 of file resampler.cpp. |
|
Definition at line 200 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 167 of file resampler.cpp. |
|
Implements audiere::SampleSource. Definition at line 189 of file resampler.cpp. |