Closed cartesius68 closed 7 months ago
Same on FreeBSD 13.2-STABLE amd64 / FiiO KA5 USB DAC
ncspot 0.13.2 Audio backends: portaudio, pipe, subprocess
Tried to reproduce this on my FreeBSD 13.2 VM with a FiiO K7 BT USB DAC as I wanted to look into this and see whether it still happened on the latest version, but can't reproduce this on 0.11.0
or 0.13.2
.
@ThomasFrans
Tested 0.13.4 on FreeBSD 15 CURRENT and same error.
Have you setup sysctl.conf:
# Enable bit-perfect playback for USB DAC
dev.pcm.4.bitperfect=1
# The recommended way to use bitperfect mode is to disable VCHANs
dev.pcm.4.play.vchans=0
or have run:
$ sysctl dev.pcm.4.bitperfect=1
$ sysctl dev.pcm.4.play.vchans=0
?
ncspot starts ok but crashes when playing a song.
Thanks
@ThomasFrans
Is there a way to debug this crash? I'm not an expert in rust and will need correct procedure how to debug it.
I missed the configuration for bit perfect audio. I'm new to BSD so I didn't know you had to set this manually. I'll try with that option set.
@ThomasFrans
See also:
man 4 sound
https://man.freebsd.org/cgi/man.cgi?query=sound&sektion=4&apropos=0&manpath=FreeBSD+13.2-RELEASE+and+Ports
Thanks
I can now recreate it. I don't think librespot supports this setup. I'll try to add more graceful handling of the error.
ncspot 1.0.0 (15515c2)
cargo run --no-default-features --features share_clipboard,portaudio_backend,mpris,notify,crossterm_backend
@ThomasFrans
In that case this PR can be closed by https://github.com/hrkfdn/ncspot/commit/38010b4c7649797de03cb798700bd923340f61bc or should we do some more tests?
Thanks
I'd say so. I don't think much can be done here except for a more graceful exit.
Thanks everyone, will close it then :)
Describe the bug Crashes on every song.
To Reproduce
Expected behavior Standard play.
Screenshots
System (please complete the following information):
Additional context Full Shiit 3 USB DAC