Copyright © 2005-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.

For further details about synchronization through Events see the How to synchronize the container application through events tutorial.

 

 

Syntax

 

[Visual Basic]

Public Event FadingVolumeChanged As FadingVolumeChangedEventHandler


 

[C#]

public event FadingVolumeChangedEventHandler FadingVolumeChanged;


 

[C++]

public: __event FadingVolumeChangedEventHandler FadingVolumeChanged;


 

 

Event Data

 

The event handler receives an argument of type FadingEventArgs having the following parameters:

 

Parameters

Description

 

 

nPlayerIndex

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

fVolume

The player's current volume