Skip to content

Default sound output device change detection #2316

Closed

Description

@xklonx

I turn on the broadcast, while the sound is output in the speakers (the default device), they are selected as the sound source and everything is fine. Now I connect bluetooth headphones, windows changes the default device to them and the sound starts to be output in them, while the default device is selected in obs, but obs loses sound. Moreover, if you go into the properties of the playback device, the default device is selected there and if you just click ok, then the sound starts to pick up correctly again.

Expected Behavior

Obs must correctly detect the default device change.

https://obsproject.com/mantis/view.php?id=1069

Activity

  1. added
    issue/confirmed
    on Apr 26, 2020
  2. Fenrirthviti commented on Apr 26, 2020

    @Fenrirthviti
    Member

    This is confirmed, and there is probably an argument for keeping it the same as it is now, as much as changing it. Changing the selected device while OBS is active (especially in automated scenarios like you mentioned) could be disruptive while streaming or recording is active. I'm not sure what the best way to handle it would be.

  3. xklonx commented on Apr 26, 2020

    @xklonx
    Author

    This is an example of default device change handling https://stackoverflow.com/questions/6163119/handling-changed-audio-device-event-in-c-sharp i checked and it works. I think that this is not an option to force the user to manually change the device, since it even looks like an error, you didnt even change something, just hit save and it starts working. If the obs will change the device automatically, it will not be more disruptive than if the user does it manually.

  4. Fenrirthviti commented on Apr 26, 2020

    @Fenrirthviti
    Member

    I think this is less about how to do it, and more about if we should do it. You're right it's not more disruptive than a user changing it manually, but Windows likes to automatically change the default devices all the time (like if you plug a USB device that has a microphone or desktop audio device as part if it, Windows will "helpfully" switch your default to that), which might result in confusion and frustration for users. I'm all in favor of allowing this option, but we need some kind of feedback for when it happens.

  5. mkrupczak3 commented on Jul 24, 2020

    @mkrupczak3
  6. mkrupczak3 commented on Jul 24, 2020

    @mkrupczak3
  7. Fenrirthviti commented on Jul 24, 2020

    @Fenrirthviti
  8. added
    platform/windows
    on Jul 24, 2020
  9. mkrupczak3 commented on Jul 24, 2020

    @mkrupczak3
  10. added this to the OBS Studio 26.1 milestone on Aug 31, 2020
  11. kinsi55 commented on Oct 27, 2020

    @kinsi55

    Would love to see this implemented. When starting SteamVR it will automatically switch the default recording device to the one of the HMD (And back when exiting it again). Having OBS pick up on that without manually needing to trigger it would be a great QOL improvement.

  12. Fenrirthviti commented on Oct 27, 2020

    @Fenrirthviti
    Member

    Also, just to document the discussion that happened in Discord regarding this issue, we agree that this should be changed. Current target is looking at this for v27, per the milestone.

  13. 8 remaining items

  14. Fenrirthviti commented on Feb 6, 2021

    @Fenrirthviti
    Member

    The recent commits only affect Windows audio capture, not Linux. This will be available in the Windows release of v27.

  15. mkrupczak3 commented on Feb 7, 2021

    @mkrupczak3

    Big oof

    I reported the issue on Linux anyways, but I think that thread eventually got deleted...

  16. jp9000 commented on Feb 7, 2021

    @jp9000
    Member

    Oh woops. Well I'll reopen it for now.

  17. reopened this on Feb 7, 2021
  18. removed this from the OBS Studio 27.0 milestone on Feb 7, 2021
  19. paullyvenne commented on Feb 27, 2021

    @paullyvenne

    This is confirmed, and there is probably an argument for keeping it the same as it is now, as much as changing it. Changing the selected device while OBS is active (especially in automated scenarios like you mentioned) could be disruptive while streaming or recording is active. I'm not sure what the best way to handle it would be.

    I would disagree, if you change the default device with Windows 10, OBS should change with you. I've streamed so many times and OBS ignored my device change. The argument against it doesn't make much sense because they wouldn't choose DEFAULT device in the first place if they were worried about devices changing on them. Why not just fix it so it changes to the DEFAULT device in real time as expected.

  20. paullyvenne commented on Feb 27, 2021

    @paullyvenne

    I think this is less about how to do it, and more about if we should do it. You're right it's not more disruptive than a user changing it manually, but Windows likes to automatically change the default devices all the time (like if you plug a USB device that has a microphone or desktop audio device as part if it, Windows will "helpfully" switch your default to that), which might result in confusion and frustration for users. I'm all in favor of allowing this option, but we need some kind of feedback for when it happens.

    Then they wouldn't set the audio device to DEFAULT, they would set it to the device they'd want to be the primary, and how rarely does someone plug in new audio devices during a stream, but they will change from speaker to headphones often while OBS has started.

  21. Fenrirthviti commented on Feb 27, 2021

    @Fenrirthviti
    Member

    We already implemented this on Windows, so we don't need any further incentive. Thank you for the comments though!

    This issue is still open because it has not been implemented on Linux yet.

  22. paullyvenne commented on Feb 27, 2021

    @paullyvenne

    We already implemented this on Windows, so we don't need any further incentive. Thank you for the comments though!
    This issue is still open because it has not been implemented on Linux yet.

    It's still happening in version 26.1.1 perhaps I'm not familiar with your release management, how do I get it with the fixed version... 27.0 isn't available, correct?

  23. Fenrirthviti commented on Feb 27, 2021

    @Fenrirthviti
    Member

    Correct, this will be in v27 as mentioned a few comments up, which hasn't been released yet. You can either build yourself against current master, or grab one of our nightly builds from CI. Keep in mind those builds will not be signed, so you might run in to issues with game capture being blocked (or overly aggressive antivirus blocking functionality).

  24. added
    platform/linux
    and removed
    platform/windows
    on Jun 13, 2021
  25. m1neral-rocks commented on Jun 20, 2022

    @m1neral-rocks

    Any updates/temporary solutions for this on Linux? I'm still experiencing it on both pulseaudio and pipewire

  26. RytoEX commented on Sep 22, 2022

    @RytoEX
    Member

    As the original Mantis Issue was about WASAPI (Windows-only), and this Issue was a mirror to that Mantis Issue, and we have fixed the Windows case, we're going to close this as fixed. If there is a similar Linux issue with sound devices regarding changing default sound devices, please file a new Issue with detailed steps to reproduce.

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

    issue/confirmedplatform/linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions