#include <basic_source.h>
Inheritance diagram for audiere::BasicSource:
Public Member Functions | |
BasicSource () | |
int | read (int frame_count, void *buffer) |
bool | isSeekable () |
int | getLength () |
void | setPosition (int) |
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) |
virtual int | doRead (int frame_count, void *buffer)=0 |
Protected Member Functions | |
void | addTag (const Tag &t) |
void | addTag (const std::string &k, const std::string &v, const std::string &t) |
Definition at line 29 of file basic_source.h.
|
Definition at line 8 of file basic_source.cpp. |
|
Definition at line 60 of file basic_source.h. References addTag(). |
|
Definition at line 56 of file basic_source.h. Referenced by addTag(), and audiere::OGGInputStream::initialize(). |
|
Implement this method in subclasses.
Implemented in audiere::AIFFInputStream, audiere::FLACInputStream, audiere::MODInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::SpeexInputStream, audiere::WAVInputStream, audiere::WhiteNoise, audiere::PinkNoise, audiere::BufferStream, audiere::SquareWave, and audiere::SineWave. Referenced by read(). |
|
Implements audiere::SampleSource. Reimplemented in audiere::AIFFInputStream, audiere::FLACInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::SpeexInputStream, audiere::WAVInputStream, and audiere::BufferStream. Definition at line 40 of file basic_source.h. |
|
Returns the current position within the sample source.
Implements audiere::SampleSource. Reimplemented in audiere::AIFFInputStream, audiere::FLACInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::SpeexInputStream, audiere::WAVInputStream, and audiere::BufferStream. Definition at line 42 of file basic_source.h. |
|
Implements audiere::SampleSource. Definition at line 44 of file basic_source.h. |
|
Returns number of metadata tags present in this sample source.
Implements audiere::SampleSource. Definition at line 47 of file basic_source.h. |
|
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 48 of file basic_source.h. |
|
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 50 of file basic_source.h. |
|
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 49 of file basic_source.h. |
|
Implements audiere::SampleSource. Reimplemented in audiere::AIFFInputStream, audiere::FLACInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::SpeexInputStream, audiere::WAVInputStream, and audiere::BufferStream. Definition at line 39 of file basic_source.h. |
|
Manages repeating within read(). Implement doRead() in implementation classes. Implements audiere::SampleSource. Definition at line 13 of file basic_source.cpp. References ADR_LOG, doRead(), audiere::GetFrameSize(), and audiere::SampleSource::reset(). Referenced by audiere::WAVInputStream::doRead(), audiere::AIFFInputStream::doRead(), and audiere::FLACInputStream::initialize(). |
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Implements audiere::SampleSource. Reimplemented in audiere::AIFFInputStream, audiere::FLACInputStream, audiere::MP3InputStream, audiere::OGGInputStream, audiere::SpeexInputStream, audiere::WAVInputStream, and audiere::BufferStream. Definition at line 41 of file basic_source.h. |
|
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 45 of file basic_source.h. |