EMIPLIB
|
Win32/WinCE Soundcard output component. More...
#include <mipwinmmoutput.h>
Public Member Functions | |
bool | open (int sampRate, int channels, MIPTime blockTime=MIPTime(0.020), MIPTime bufferTime=MIPTime(10.0), bool highPriority=false, UINT deviceID=WAVE_MAPPER) |
Open the soundcard playback device. | |
bool | close () |
Close the soundcard playback device. |
This component allows playing back sound on Win32 and WinCE platforms. It uses the MS-Windows Multimedia SDK waveOut... functions. The component accepts raw audio messages using signed 16 bit little endian encoding. No messages are generated by the component.
bool MIPWinMMOutput::close | ( | ) |
Using this function, the previously opened device is closed.
bool MIPWinMMOutput::open | ( | int | sampRate, |
int | channels, | ||
MIPTime | blockTime = MIPTime(0.020) , |
||
MIPTime | bufferTime = MIPTime(10.0) , |
||
bool | highPriority = false , |
||
UINT | deviceID = WAVE_MAPPER |
||
) |
This function opens the sound playback device.
sampRate | The sampling rate (e.g. 8000, 22050, 44100, ...) |
channels | The number of channels (e.g. 1 for mono, 2 for stereo) |
blockTime | Audio data with a length corresponding to this parameter is sent to the soundcard device during each iteration. |
bufferTime | The component allocates a number of buffers to store audio data in. This parameter specifies how much data these buffers can contain, specified as a time interval. Note that this is not the amount of buffering introduced by the component. |
highPriority | If true , the thread of the chain in which this component resides will receive the highest priority. This will guarantee a smooth playback. |