-
Notifications
You must be signed in to change notification settings - Fork 187
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
plug ALSA plugin cannot convert to bluealsa #8
Comments
Hi, Thx for reporting this issue. Bluealsa is still in a development stage. It works in the most common cases, but all edge cases might need some workarounds and/or fixing :)
I'll try to fix this right away. However, in a meantime there is a workaround. When bluealsa server hangs and kill -9 is required, before restating it, the
Reboot works as well, because on most distros this directory (/var/run) is mounted as a tmpfs. |
Is there anything I can do? Backtrace or something? |
No, thanks. I've never tested plug ALSA plugin before, so this bug did not pop out. It is 100% reproducible :D. |
Meanwhile I updated the archlinux wiki to help future PulseAudio-less users: https://wiki.archlinux.org/index.php/Bluetooth_headset#Headset_via_Bluez5.2Fbluez-alsa |
I thought about adding some guidelines on the wiki page, but I'm not a good editor :) So, many thanks for that! Anyway, I've fixed (I hope so) the issue with the limbo-state bluealsa server. There shouldn't be any leftovers in the /var/run any more. I've seen this issue by myself from time to time, however I was not able to pinpoint it without a reliable way to reproduce it. The issue with the plug ALSA plugin I'll try to fix maybe tomorrow, my brain is off for today :D |
I've added small fix to the current master snapshot 8a240c9, which should help a little bit with this issue. Now, I'm able to use plug plugin without any extra parameters and it seems to work. However, I'm not able to make it work with anything except My .asoundrc setup:
Please, let me know if current master works for you (with aplay). However, to fix this issue in a full extent, I might need some more time. |
Sorry for the slow answer, I forgot my headset at work. Now I tested it and it apparently works fine. I tried: aplay, mplayer, and quakespasm. It worked fine for the first two, but in the third the sound was crackling. (Just guess what program I was trying when my boss entered the room, :D ) However, I think it's not fault of bluealsa, because it has always problems unless you "plug" it directly to the hadware (hw:0 or so). That it is not really possible with bluetooth, isn't it? Since in many programs is difficult to setup what is the output sound card I use this little trick:
and simply start programs with It works great, it is just unfortunate I cannot, or I do not know a way to, setup an env variable system-wide and change it with ease. Edit: chromium crashes while outputting via bluealsa a youtube clip sound, though 😆 . |
After LOTS of digging I've found out, that alsa-lib >= 1.1.2 does not play well with BlueALSA (in general with any software ALSA plugin). The problem is with thread-(non)safety ALSA patch, which is shipped with alsa-lib >= 1.1.2. So now (after disabling thread-safety, or downgrading to alsa-lib 1.0.29), I'm able to play audio via the plug plugin too (aplay, mpv, cmus, they all work great). Also, I've tested BlueALSA with opera (which is based on chrome), but I was not able to crush it. Could you tell me which version of chrome and alsa-lib you are using. Also, if youtube was played via the HTML5 functionality or via the flash player? |
alsa-lib 1.1.2
Chromium 54.0.2840.100
I am not sure about the youtube video format, but by default chromium
uses the Html5 player so I assume it's that.
I tried with Firefox and it also does not work, but it does not crash. It simply freezes at the first frame.
|
Hallo, i'm trying to setup a Pi3 with jessie lite and bluealsa. I got a Hifiberry Dac installed and want to use the Pi as bluetooth speaker for my smartphone. So far i managed to install bluez 5.43 and also your bluealsa. I can connect the phone via BT. Also in terminal i can see blueals running and listings commands when music is´stopped or next song is played, but i can't her music. With speaker-test i can her the test sound. So soundcard is working. `defaults.bluealsa.interface "hci0" pcm.!default {
|
Closing stale issue. |
I wanted to automatically convert to the sound format expected by my headset so added this lines to my asoundrc:
I did not add the three lines "format, channels, rate" in the beginning, but without them programs crashes or fail cleanly. Still, if plug ALSA plugin cannot convert it is not very useful.
Example, the first execution works. The second crashes. The third freezes.
Disconnecting and connecting or restarting bluetoothd does not help at all, bluealsa appears frozen and reacts only to a kill -9 and when I restart bluealsa I get "Couldn't initialize controller thread: Address already in use." The only solution I found is a full reboot.
Still, thanks a lot for bluealsa. Even with its problems seems better than pulseaudio to me.
The text was updated successfully, but these errors were encountered: