

Public Methods | |
| 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 () |
|
||||||||||||||||
|
Retrieve the number of channels, sample rate, and sample format of the sample source. Implements audiere::SampleSource. Definition at line 11 of file noise.cpp. References ADR_CALL, audiere::hidden::sample_format, audiere::SampleFormat, and audiere::SF_S16. |
|
||||||||||||
|
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 21 of file noise.cpp. References ADR_CALL, and audiere::s16. |
|
|
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 29 of file noise.cpp. References ADR_CALL. |
1.2.17