#include <input_wav.h>
Inheritance diagram for audiere::WAVInputStream:


Public Methods | |
| WAVInputStream () | |
| bool | initialize (File *file) |
| 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 () |
|
|
Definition at line 13 of file input_wav.cpp. References audiere::SF_U8. |
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 63 of file input_wav.cpp. References audiere::hidden::sample_format, and audiere::SampleFormat. |
|
|
Implements audiere::SampleSource. Definition at line 124 of file input_wav.cpp. |
|
|
Returns the current position within the sample source.
Implements audiere::SampleSource. Definition at line 138 of file input_wav.cpp. |
|
|
Definition at line 28 of file input_wav.cpp. References audiere::File::read(), audiere::read32_le(), audiere::u32, and audiere::u8. |
|
|
Implements audiere::SampleSource. Definition at line 118 of file input_wav.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 75 of file input_wav.cpp. References audiere::GetSampleSize(), read(), audiere::SF_S16, and audiere::u8. Referenced by read(). |
|
|
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 110 of file input_wav.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 130 of file input_wav.cpp. References audiere::GetSampleSize(). |
1.2.17