Remarks
Sets the mute status of the mixer's wave element.
The current mute status can be retrieved using the MixerGetWaveMute method.
The number of mixers currently installed on the system can be retrieved using the MixerGetCount method. A friendly description of the mixer can be retrieved using the MixerGetDesc method.
IMPORTANT NOTE ABOUT THE WINDOWS VERSION: This method is only intended for usage when the operating system is Windows XP or older versions; for Windows Vista and higher versions it's recommended using methods exposed by the CoreAudioDevicesMan class.
|
Syntax
[Visual Basic]
Public Function MixerSetWaveMute (
nIndex as Int16,
bMute as Boolean
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes MixerSetWaveMute (
Int16 nIndex,
bool bMute
);
|
|
[C++]
public: enumErrorCodes MixerSetWaveMute (
Int16 nIndex,
bool bMute
);
|
|
Parameter
|
Description
|
|
|
nIndex
|
Number representing the zero-based index of the mixer whose wave mute status must be set
|
bMute
|
The new mute status.
Supported values are the following:
Mnemonic constant
|
Meaning
|
false
|
Unmutes wave
|
true
|
Mutes wave
|
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
enumErrorCodes.NOERROR (0)
|
The method call was successful
|
|