-
Notifications
You must be signed in to change notification settings - Fork 325
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
No audio when connecting headphones after starting playback #589
Comments
Sounds alot like #36. |
Sure does. It looks like that was fixed in libao 6 years ago. Have they not done a release since then? |
Afaik there’s noone maintaining libao currently. |
Aww, sadness. How critical is it to pianobar? Are there any more current libraries that do the same thing? |
I would step in as maintainer for libao. There’s already a fork at |
Oddly, this doesn't always fail for me. Sometimes it successfully switches from Bluetooth to internal speaker; rarer it successfully switches to Bluetooth from internal. Would a sighup handler or "reconnect audio" command be a feasible workaround? |
Does it work on the next track or do you have to restart pianobar like
Zev? If a restart is required there’s probably nothing I can do.
Otherwise closing and reopening the audio device might help. Obviously
libao should be fixed nontheless.
|
I'll test it and get back to you.
…On Sat, Dec 10, 2016, 12:38 PM PromyLOPh ***@***.***> wrote:
Does it work on the next track or do you have to restart pianobar like
Zev? If a restart is required there’s probably nothing I can do.
Otherwise closing and reopening the audio device might help. Obviously
libao should be fixed nontheless.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#589 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIFLFaBjaWpIN3YSVDKcZknxiXhlLDqks5rGuOFgaJpZM4I_T5E>
.
|
I think I've since seen cases where it doesn't fail for me either, but it's hard to say for sure. It may have started with headphones in, then unplugged, then re-plugged. |
Okay, it does switch when the next song plays back. As well, it switches seamlessly back to onboard audio when BT is disconnected. For me, as well (2015 MBP) switching between internal speakers and wired headphones is always seamless, as is switching between different BT audio devices. |
Actually, there already is a signal you can use. Sending SIGINT (^C)
will restart the current song and thereby reopen the audio device
(unless pianobar expects user input, i.e. you pulled up a menu).
Which libao backend are we talking about? pulseaudio?
|
control |
I use headphones to listen to pianobar on my Mac. Sometimes, I forget to plug in my headphones when I start pianobar. After starting playback and not hearing anything (or disturbing my coworkers), I remember and connect my headphones. However, pianobar doesn't seem to be able to switch its playback to the new output device. I have to exit and restart it in order to hear it through my headphones.
The text was updated successfully, but these errors were encountered: