Skip to content

Expose sessioncontrol2 for the ability to configure ducking behavior #51

Closed

Description

@dtzxporter

I would like to access the ducking behavior of the session control here: https://learn.microsoft.com/en-us/windows/win32/api/audiopolicy/nf-audiopolicy-iaudiosessioncontrol2-setduckingpreference happy to help implement it, but would like to know if the existing session control should just be upgraded to the v2 instance, or if separate methods would be recommended.

Activity

  1. HEnquist commented on Oct 16, 2025

    @HEnquist
    Owner

    I think it should be ok to use the same approach as here:

    let audio_client_2 = self.client.cast::<IAudioClient2>()?;

    Great if you want to implement this!

  2. HEnquist commented on Oct 22, 2025

    @HEnquist
    Owner

    This is now included in the 0.21 release, published on crates.io a moment ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions