Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong choosen pulse sink (not the default one atm) #2049

Open
stacyharper opened this issue May 24, 2022 · 3 comments
Open

Wrong choosen pulse sink (not the default one atm) #2049

stacyharper opened this issue May 24, 2022 · 3 comments

Comments

@stacyharper
Copy link

stacyharper commented May 24, 2022

Describe the bug

When I connect a bluetooth headset and make it my default pipewire sink, when I choose another music on mopidy, it output on the last sink.

How to reproduce

Steps to reproduce the behaviour including any error messages that occur.

  • listen to something
  • connect a bluetooth headset (sound normaly toggle to this new sink)
  • select another music (sound toggle back to the old sink)

Expected behaviour

Mopidy should always use the default pulse sink.

Environment

Additional notes

It looks like mopidy use the sink that was the default when it started. If I connect a headset and restart mopidy, then this sink is used when changing music.

@kingosticks
Copy link
Member

Can you please provide your config and a debug log reproducing the problem. The log should hopefully say what sink is being used when the audio pipeline is constructed at startup. If it's using pulsesink, then I'm not sure what else we can be expected to do, Pulse should handle this surely.

@stacyharper
Copy link
Author

My current mopidy.conf is : https://paste.sr.ht/~stacyharper/761346bf199497e91f7a5f136405ca4de08e9974

Yap it use pulsesink. You mean nothing is handled by mopidy itself ? Mhh I just never encountered this kind of issue outside.

Someone does reproduce this ?

@kingosticks
Copy link
Member

I don't have this setup so I can't. Maybe someone else can. There's some vaguely relevant looking stuff at https://askubuntu.com/questions/71863/how-to-change-pulseaudio-sink-with-pacmd-set-default-sink-during-playback

I think it boils down to us opening the sink at the start of playback and keeping it open until we stop (NOT pause). At which point, after the stop I guess it should switch. You could try that.

I don't know how we are supposed to handle this and make it happen automatically. Sounds like something gstreamer or pulse should be doing, not an application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants