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

No audio when connecting headphones after starting playback #589

Open
ZevEisenberg opened this issue Jun 27, 2016 · 12 comments
Open

No audio when connecting headphones after starting playback #589

ZevEisenberg opened this issue Jun 27, 2016 · 12 comments
Labels

Comments

@ZevEisenberg
Copy link

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.

@PromyLOPh
Copy link
Owner

Sounds alot like #36.

@ZevEisenberg
Copy link
Author

Sure does. It looks like that was fixed in libao 6 years ago. Have they not done a release since then?

@PromyLOPh
Copy link
Owner

Afaik there’s noone maintaining libao currently.

@ZevEisenberg
Copy link
Author

Aww, sadness. How critical is it to pianobar? Are there any more current libraries that do the same thing?

@PromyLOPh
Copy link
Owner

Aww, sadness. How critical is it to pianobar?
Well, it doesn’t work without audio output :) Good thing is, libao works
just fine most of the time.

Are there any more current libraries that do the same thing?
There’s portaudio, which also hasn’t seen a release in the last two
years.

I would step in as maintainer for libao. There’s already a fork at
https://github.com/PromyLOPh/libao. But to make that work I’d need a few
developers for the platforms I cannot support, most importantly Windows
and macOS.

@sehrgut
Copy link

sehrgut commented Dec 9, 2016

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?

@PromyLOPh
Copy link
Owner

PromyLOPh commented Dec 10, 2016 via email

@sehrgut
Copy link

sehrgut commented Dec 10, 2016 via email

@ZevEisenberg
Copy link
Author

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.

@sehrgut
Copy link

sehrgut commented Dec 10, 2016

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.

@PromyLOPh
Copy link
Owner

PromyLOPh commented Dec 11, 2016 via email

@mralexgray
Copy link

control+c works!

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

No branches or pull requests

4 participants