Copyright © 2006-2026 MultiMedia Soft

CoreAudioDevicePartVolumeChange event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when the volume or mute status of a specific subpart of an audio endpoint device is modified by the user inside the Sound applet of the Windows Control Panel.

In order to obtain the updated volume levels and mute status, use the CoreAudioDevices.PartsVolumeGet and CoreAudioDevices.PartsMuteGet method in conjunction with the parameters passed to the event.

 

This event is generated in Windows Vista and later versions only.

 

 

Syntax

 

[Visual Basic]

Public Event CoreAudioDevicePartVolumeChange As CoreAudioDevicePartVolumeChangeEventHandler


 

[C#]

public event CoreAudioDevicePartVolumeChangeEventHandler CoreAudioDevicePartVolumeChange;


 

[C++]

public: __event CoreAudioDevicePartVolumeChangeEventHandler CoreAudioDevicePartVolumeChange;


 

 

Event Data

 

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

Parameter

Description

 

 

nDataFlow

Direction in which audio data flows between an audio endpoint device and an application.

Supported values are the following:

Mnemonic Value

Value

Meaning

DEVICE_DATA_FLOW_RENDER

0

Audio rendering stream. Audio data flows from the application to the audio endpoint device, which renders the stream

DEVICE_DATA_FLOW_CAPTURE

1

Audio capture stream. Audio data flows from the audio endpoint device that captures the stream, to the application.

nDeviceIndex

Zero-based index of the audio endpoint device whose subpart generated the event.

nPartIndex

Zero-based index of the subpart that generated the event.