CoreAudioDeviceVolumeChange event |
|
Remarks
Occurs when the volume level of an audio endpoint device changes. After receiving this event you can query current volume through the CoreAudioDevices.ChannelVolumeGet and CoreAudioDevices.MasterVolumeGet methods.
This event is only generated in Windows Vista and later versions: further information about management of audio devices in Windows Vista and later versions can be found inside the How to access settings of audio devices in Windows Vista and later versions tutorial.
For further details about synchronization through Events see the How to synchronize the container application through events tutorial.
Syntax
[Visual Basic] Public Event CoreAudioDeviceVolumeChange As CoreAudioDeviceVolumeChangeEventHandler |
[C#] public event CoreAudioDeviceVolumeChangeEventHandler CoreAudioDeviceVolumeChange; |
[C++] public: __event CoreAudioDeviceVolumeChangeEventHandler CoreAudioDeviceVolumeChange; |
Event Data
The event handler receives an argument of type CoreAudioDeviceEventArgs having the following parameters:
Parameters |
Description |
|||||||||
|
|
|||||||||
nDataFlow |
Direction in which audio data flows between an audio endpoint device and an application. Supported values are the following:
|
|||||||||
nDeviceIndex |
Zero-based index of the audio endpoint device which generated the event. The total number of audio endpoint devices can be obtained through the CoreAudioDevices.CountGet method. |