#include <input_mod.h>
Inheritance diagram for audiere::MODInputStream:


Public Methods | |
| MODInputStream () | |
| ~MODInputStream () | |
| 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 () |
|
|
Definition at line 78 of file input_mod.cpp. |
|
|
Definition at line 92 of file input_mod.cpp. |
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 204 of file input_mod.cpp. References audiere::hidden::sample_format, audiere::SampleFormat, and audiere::SF_S16. |
|
|
Definition at line 106 of file input_mod.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 216 of file input_mod.cpp. References ADR_GUARD, and audiere::u32. |
|
|
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 254 of file input_mod.cpp. References ADR_GUARD. |
1.2.17