EMIPLIB
|
An SDL audio output component. More...
#include <mipsdlaudiooutput.h>
Public Member Functions | |
bool | open (int sampRate, int channels, MIPTime interval=MIPTime(0.020), MIPTime arrayTime=MIPTime(10.0)) |
Initializes the component. | |
bool | close () |
Closes a previously opened SDL audio component. |
This component uses the SDL audio system to produce audio output. It accepts 16 bit native endian raw audio messages and produces no messages itself.
bool MIPSDLAudioOutput::close | ( | ) |
bool MIPSDLAudioOutput::open | ( | int | sampRate, |
int | channels, | ||
MIPTime | interval = MIPTime(0.020) , |
||
MIPTime | arrayTime = MIPTime(10.0) |
||
) |
Initializes the component.
sampRate | The sampling rate. |
channels | The number of channels. |
interval | Intenally, audio data is written to the soundcard device each time inteval elapses. Note that this value may be changed somewhat. |
arrayTime | The amount of memory allocated to internal buffers, specified as a time interval. Note that this does not correspond to the amount of buffering introduced by this component. |