Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents  
 
 
InitRecorder method 
 
Remarks 
 
Initialises the control for use with the chosen recording input device and input channel. 
 
Use the value returned by the GetInputDevicesCount method in order to know how many input devices are currently installed on the system and the GetInputDeviceDesc method in order to retrieve the friendly name of each input device. 
Use the value returned by the GetInputDeviceChannelsCount method in order to know how many input channels are available for a given input device and the GetInputDeviceChannelDesc method in order to retrieve the friendly name of each input channel. 
 
 
Syntax 
 
[Visual Basic] 
Public Function InitRecorder
nInputDevice as Int16, 
nInputChannel as Int16 
 
[C#] 
public enumErrorCodes InitRecorder
Int16 nInputDevice
Int16 nInputChannel 
);
 
[C++] 
public: enumErrorCodes InitRecorder
Int16 nInputDevice
Int16 nInputChannel 
);
 
 
Parameter
Description
 
 
nInputDevice
Number representing the zero-based index of the input device (sound card) that will be used for recording (use 0 for setting the system default input device). The input device can be changed at a later time through a call to the ChangeInputDevice method. 
If you don't need to perform operations that will require the presence of a sound card, for example for CD ripping or for recording from disk sound files, you must set this parameter to -1. 
 
If the multimedia engine shouldn't find any enabled or valid input or output device, the container application would be notified through the WarnNoInputDevice and WarnNoOutputDevice events. 
 
This parameter is ignored by the Light edition
nInputChannel
Number representing the zero-based index of the input channel (Microphone, Stereo Mix, Line-In, etc.) that will be used for recording on the input device set through the nInputDevice parameter (use -1 for setting the system default input channel). The default input channel related to the chosen input device can be changed at a later time through a call to the SetInputDeviceChannelDefault method. 
 
This parameter is ignored by the Light edition
 
 
Return value 
 
Value
Meaning
 
 
Negative value
An error occurred (see the LastError property for further error details)
enumErrorCodes.ERR_NOERROR (0)
The method call was successful.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents