Skip to content

WASAPI: Raw stream mode #1173

Open

Description

@infiniwave

On Windows, the audio captured (through build_input_stream) seems to be passed through a default audio filter. I thought I had a bug in my code, because the sound recorded by cpal kept cutting out. This was particularly strange because sound from the same microphone in other apps that also didn't use exclusive mode (e.g. Discord) was fine. This issue did not happen on Linux. I found out that this issue was that Windows does audio processing by default. I did some further digging, and it seems that cpal does not use the IAudioClient2::SetClientProperties, which allows the AUDCLNT_STREAMOPTIONS_RAW flag to be set.

Activity

  1. roderickvd commented on Apr 20, 2026

    @roderickvd
    Member

    Yes, that looks like a knob we should allow to turn. There could be reasons why a user would want it to be routed through the filter chain too, right?

  2. infiniwave commented on Apr 20, 2026

    @infiniwave
    Author

    Yes, of course.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions