|
Copyright © 2006 - 2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
Public Function ResetControl (
nInputDevice as Int16,
nInputChannel as Int16
) As enumErrorCodes
|
|
[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
|
|
Value
|
Meaning
|
|
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful.
|