Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents  
 
 
ResetControl method 
 
Remarks 
 
Re-initialises the control after a reset of the multimedia engine: the call to this method is mandatory after a call to the ResetEngine method. The purpose of this method is mostly identical to the InitRecorder method and shares the same parameters. 
 
 
Syntax 
 
[Visual Basic] 
Public Function ResetControl
nInputDevice as Int16, 
nInputChannel as Int16 
 
[C#] 
public enumErrorCodes ResetControl
Int16 nInputDevice
Int16 nInputChannel 
);
 
[C++] 
public: enumErrorCodes ResetControl
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