shairplay icon indicating copy to clipboard operation
shairplay copied to clipboard

Error opening audio device 5

Open fsevenm opened this issue 5 years ago • 9 comments

Below is the complete error

Error opening audio device 5 Please check your libao settings and try again

It tells me to check my libao settings, but I think there is no problem with them. This is my libao settings in /etc/libao.conf

default_driver=pulse quiet

Any solutions will be appreciated.

fsevenm avatar Sep 13 '18 15:09 fsevenm

Try running as sudo. I saved me on nxp dev board. Double check the driver - if you are using alsa device, you should change the confing accordingly.

erikhric avatar Oct 23 '18 19:10 erikhric

I am getting the same error:

$ sudo shairplay -a mylaptop
Error opening audio device 5
Please check your libao settings and try again

I have tried alsa and pulse as a default_driver in /etc/libao.conf. Here is the default /etc/libao.conf config in my Arch Linux:

default_driver=alsa
dev=default
quiet

If I drop quiet setting, and keep alsa, I get:

ao_alsa ERROR: Unable to open ALSA device 'default' for playback => Invalid argument

which seems fine as I use pulseaudio. With debug setting and pulse driver I get:

debug: Loaded driver null (built-in)
debug: Loaded driver wav (built-in)
debug: Loaded driver raw (built-in)
debug: Loaded driver au (built-in)
debug: Loading driver plugins from /usr/lib/ao/plugins-4...
debug: Loaded driver pulse
debug: Loaded driver alsa
debug: Loaded driver oss
debug: Testing drivers to find playback default...
Error opening audio device 5
Please check your libao settings and try again

frol avatar Feb 22 '19 14:02 frol

Getting the same issue on a fresh Arch Linux install. Not really sure how this app in general is supposed to work.

ColonelThirtyTwo avatar Dec 24 '19 02:12 ColonelThirtyTwo

Edit your /etc/libao.conf:

  1. Change default_driver to pulse
  2. Comment out dev=default

stephensrmmartin avatar Dec 27 '19 02:12 stephensrmmartin

Edit your /etc/libao.conf:

  1. Change default_driver to pulse
  2. Comment out dev=default

Getting the same error, on Ubuntu. Here's my /etc/libao.conf

default_driver=pulse
quiet

I don't even care about the audio for the moment, just need an extended screen with my Mac, is there a way?

sagar-connect avatar Feb 04 '20 16:02 sagar-connect

same here, on Arch.

@rashsaga - I was to start it with dev=null in libao.conf and --ao_driver=alsa

bikubi avatar Feb 12 '20 11:02 bikubi

I think we can close this one, because I confirm it's working on ArchLinux with just this

default_driver=pulse
quiet

in the /etc/libao.conf

HugoPoi avatar Aug 08 '20 18:08 HugoPoi

Why is alsa not supported though?

UnlimitedCookies avatar Nov 30 '20 23:11 UnlimitedCookies

@UnlimitedCookies I think alsa is supported, it's just a mess if you use pulse and the same time alsa

HugoPoi avatar Dec 02 '20 22:12 HugoPoi