#include <input_wav.h>
Inheritance diagram for audiere::WAVInputStream:
Public Member Functions | |
WAVInputStream () | |
bool | initialize (FilePtr file) |
void | getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format) |
int | doRead (int frame_count, void *buffer) |
void | reset () |
bool | isSeekable () |
int | getLength () |
void | setPosition (int position) |
int | getPosition () |
Definition at line 12 of file input_wav.h.
|
Definition at line 14 of file input_wav.cpp. References audiere::SF_U8. |
|
Implement this method in subclasses.
Implements audiere::BasicSource. Definition at line 79 of file input_wav.cpp. References audiere::GetSampleSize(), audiere::BasicSource::read(), and audiere::SF_S16. |
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 67 of file input_wav.cpp. |
|
Reimplemented from audiere::BasicSource. Definition at line 128 of file input_wav.cpp. |
|
Returns the current position within the sample source.
Reimplemented from audiere::BasicSource. Definition at line 142 of file input_wav.cpp. |
|
Definition at line 30 of file input_wav.cpp. References ADR_LOG, and audiere::read32_le(). |
|
Reimplemented from audiere::BasicSource. Definition at line 122 of file input_wav.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 114 of file input_wav.cpp. References audiere::File::BEGIN. |
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Reimplemented from audiere::BasicSource. Definition at line 134 of file input_wav.cpp. References audiere::File::BEGIN, and audiere::GetSampleSize(). |