EMIPLIB
Public Member Functions

MIPWinMMInput Class Reference

Win32/WinCE Soundcard input component. More...

#include <mipwinmminput.h>

Inheritance diagram for MIPWinMMInput:
Inheritance graph
[legend]
Collaboration diagram for MIPWinMMInput:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.

Parameters:
sampRateThe sampling rate (e.g. 8000, 22050, 44100, ...)
channelsThe number of channels (e.g. 1 for mono, 2 for stereo)
intervalThe sampling interval.
bufferTimeThe 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.
highPriorityIf 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.

The documentation for this class was generated from the following file: