Open ronilaukkarinen opened 5 years ago
I don't think you need dev=default
in your libao.conf
.
According to pa_simple_new you need pass a NULL
to dev
for default.
If you set dev=default
, a string "default" will be passed to pa_simple_new
. see ao_pulse.c:266
Yeah, that's just one option I tried when desperately tried to get this to work. It's now removed from libao.conf but that doesn't improve the situation which seems to be stay the same regardless to that option.
Can you step into GDB, add a breakpoint at player.c:336 (the error message) and dump the value of the variable errno
? It should tell us more about the failure.
GDB is not familiar to me as I'm not very experienced in testing and programming software as I'm only a server and web dev type of dude.
I have just installed gdb via adb. gdb --help
works so I guess it's installed correctly. How to add breakpoint? (what that even means?) I presume I need to go to source dir where player.c is at or point to it somehow, but can you please provide me more precise steps on how to proceed, thanks!
Uh, that’s going to be tough if you’ve never used GDB before. Can you apply this patch instead? It should print the error number. https://gist.github.com/PromyLOPh/b294b0882c3bf942bf456dda0af19632
Here you go:
|> Station "QuickMix" (829594236901097823)
(i) Receiving new playlist... Ok.
|> "Sweet Emotion" by "Aerosmith" on "O, Yeah! Ultimate Aerosmith Hits" @ 70s Rock Radio
debug: Testing drivers to find playback default...
/!\ Cannot open audio device (error 5).
|> "Polka Dots And Moonbeams" by "Elmo Hope" on "Side Steps" @ Jazz Instrumentals Radio
debug: Testing drivers to find playback default...
/!\ Cannot open audio device (error 5).
|> "Faded" by "Alan Walker" on "Faded" <3 @ Alan Walker Radio
debug: Testing drivers to find playback default...
/!\ Cannot open audio device (error 5).
That is equivalent to AO_EOPENDEVICE, which means the driver is having some issue opening the device. It is likely this is an issue with libao on Windows Subsystem for Linux, so you might have to report it here and pray for someone to answer. Not much else I can do, unfortunately.
Subject of the issue
Trying to run pianobar on WSL, Hyper terminal, Ubuntu 16.04. Getting it to run, but just skipping tracks with
/!\ Cannot open audio device.
message without any sound.Your environment
config:
Steps to reproduce
Expected behaviour
Songs should play normally with sound without errors.
Actual behaviour
Sound works when running
paplay test.wav
on Terminal. It just needsexport PULSE_SERVER=tcp:127.0.0.1
to be run before. However, when runningpianobar
, it looks like this (debug on):/etc/libao.conf:
Alsa is currently not functional on WSL.