Public Member Functions | |
LoopPointSourceImpl (SampleSource *source) | |
void | addLoopPoint (int location, int target, int loopCount) |
void | removeLoopPoint (int index) |
int | getLoopPointCount () |
bool | getLoopPoint (int index, int &location, int &target, int &loopCount) |
void | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format) |
int | read (int fc, void *buffer) |
int | getNextLoopPoint (int position) |
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) |
Definition at line 21 of file loop_point_source.cpp.
|
Definition at line 23 of file loop_point_source.cpp. References audiere::GetFrameSize(), and audiere::SampleSource::reset(). |
|
Adds a loop point to the stream. If a loop point at 'location' already exists, the new one replaces it. Location and target are clamped to the actual length of the stream.
Implements audiere::LoopPointSource. Definition at line 34 of file loop_point_source.cpp. References audiere::clamp(), audiere::LoopPoint::location, audiere::LoopPoint::loopCount, audiere::LoopPoint::originalLoopCount, and audiere::LoopPoint::target. |
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 80 of file loop_point_source.cpp. |
|
Implements audiere::SampleSource. Definition at line 165 of file loop_point_source.cpp. |
|
Retrieves information about a specific loop point.
Implements audiere::LoopPointSource. Definition at line 64 of file loop_point_source.cpp. |
|
Returns the number of loop points in this stream. Implements audiere::LoopPointSource. Definition at line 60 of file loop_point_source.cpp. |
|
Definition at line 141 of file loop_point_source.cpp. |
|
Returns the current position within the sample source.
Implements audiere::SampleSource. Definition at line 173 of file loop_point_source.cpp. |
|
Implements audiere::SampleSource. Definition at line 177 of file loop_point_source.cpp. |
|
Returns number of metadata tags present in this sample source.
Implements audiere::SampleSource. Definition at line 185 of file loop_point_source.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 186 of file loop_point_source.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 188 of file loop_point_source.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 187 of file loop_point_source.cpp. |
|
Implements audiere::SampleSource. Definition at line 160 of file loop_point_source.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 87 of file loop_point_source.cpp. |
|
Removes the loop point at index 'index' from the stream.
Implements audiere::LoopPointSource. Definition at line 56 of file loop_point_source.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 151 of file loop_point_source.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 169 of file loop_point_source.cpp. |
|
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.
Implements audiere::SampleSource. Definition at line 181 of file loop_point_source.cpp. |