AcxVolumeChangeLevelNotification - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// acxelements.h

VOID AcxVolumeChangeLevelNotification(
  ACXVOLUME Volume
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-acxelements-acxvolumechangelevelnotification)

Description

The AcxVolumeChangeLevelNotification function sends a notification of a volume level change on an ACXVOLUME object so that ACX can generate a corresponding event.

Parameters

Volume

An ACXVOLUME object whose volume level has changed. For more information about ACX objects, see Summary of ACX Objects.

Remarks

Example

Example usage is shown below.

    PCODEC_VOLUME_TIMER_CONTEXT timerCtx = GetCodecVolumeTimerContext(Timer);
    PCODEC_VOLUME_ELEMENT_CONTEXT volumeCtx = GetCodecVolumeElementContext(timerCtx->VolumeElement);

    // Toggle volume between max and min
    for (ULONG i = 0; i < MAX_CHANNELS; ++i)
    {
        volumeCtx->VolumeLevel[i] = volumeCtx->VolumeLevel[i] == VOLUME_LEVEL_MAXIMUM ? VOLUME_LEVEL_MINIMUM : VOLUME_LEVEL_MAXIMUM;
    }

    AcxVolumeChangeLevelNotification(timerCtx->VolumeElement);

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

See also