|
EMIPLIB
|
Win32/WinCE Soundcard input component. More...
#include <mipwinmminput.h>


Public Member Functions | |
| bool | open (int sampRate, int channels, MIPTime interval=MIPTime(0.020), MIPTime bufferTime=MIPTime(10.0), bool highPriority=false, UINT deviceID=WAVE_MAPPER) |
| Open the sound capturing device. | |
| bool | close () |
| Closes the sound capturing device. | |
This component allows sound to be captured on Win32 and WinCE platforms. It uses the MS-Windows Multimedia SDK waveIn... functions. This component should be used at the start of a chain: it accepts only MIPSYSTEMMESSAGE_WAITTIME messages. The messages generated are raw audio messages, containing 16 bit signed little endian data.
| bool MIPWinMMInput::close | ( | ) |
This function closes a previously opened sound capturing device.
| bool MIPWinMMInput::open | ( | int | sampRate, |
| int | channels, | ||
| MIPTime | interval = MIPTime(0.020), |
||
| MIPTime | bufferTime = MIPTime(10.0), |
||
| bool | highPriority = false, |
||
| UINT | deviceID = WAVE_MAPPER |
||
| ) |
This function opens the sound capturing device.
| sampRate | The sampling rate (e.g. 8000, 22050, 44100, ...) |
| channels | The number of channels (e.g. 1 for mono, 2 for stereo) |
| interval | The sampling interval. |
| 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. |
| highPriority | If true, the thread of the chain in which this component resides and a background thread in which the sampling takes place will both receive the highest priority. |
1.7.3