Copyright © 2001-2018 MultiMedia Soft

FadingVolumeChanged event

Previous pageReturn to chapter overviewNext page

Remarks

 

During a cross-fading, performed by the embedded Automatic Fader, or during a volume sliding operation, performed through call to the StreamVolumeSlide or StreamVolumeSlideEx methods, allows to know in real time the volume of a certain player: this event is generated every 15 milliseconds and not for any single/minimal change of the volume level.

 

This event is also generated during a fading session performed after a call to the PlaySound method and after a call to the StopSound method when the StreamVolumeSmoothingSet or StreamVolumeSmoothingSetEx methods have been applied.

 

For further details about the use of the embedded Automatic Fader, refer to the How to use the Automatic Fader section.

 

 

Syntax

 

[Visual Basic]

FadingVolumeChanged (

ByVal nPlayer as Integer,

ByVal fVolume As single

)


 

[C++]

void FadingVolumeChanged (

short nPlayer,

float fVolume

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player that fired the event

fVolume

The player's current volume