Copyright © 2001-2011 MultiMedia Soft

MixerSetWaveVolume method

Previous pageReturn to chapter overviewNext page

Remarks

 

Changes the system wave volume for the given mixer: changing this volume will affect the volume also for other applications currently using the given mixer inside the system.

 

The current volume can be retrieved using the MixerGetWaveVolume 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 CoreAudioDevices COM object.

 

 

Syntax

 

[Visual Basic]

control.MixerSetWaveVolume (

nIndex as Integer,

nValue as Integer

) as enumErrorCodes


 

[C++]

short control.MixerSetWaveVolume (

short nIndex,

short nValue

);


 

 

Parameter

Description

 

 

nIndex

Number representing the zero-based index of the mixer whose wave volume must be set

nValue

The new wave volume value in the range from 0 to 100

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The wave volume has been changed correctly