-
Notifications
You must be signed in to change notification settings - Fork 192
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
Cannot play sound after successful connection #234
Comments
You are using master branch with configuration file designed for bluez-alsa <= v1.4.0 :) There are a lot of changes since v1.4.0, and few of them are not backward compatible (next version of bluez-alsa will be v2.0.0). Please look at the 20-bluealsa.conf in the master branch. You have to specify bluealsa D-Bus service name, not a HCI device. Default configuration should work just fine. Also, make sure that D-Bus has configuration file installed, otherwise your connection with the D-Bus service will fail - see #233 . |
Ok, you're right - after fixing the config (in fact just removing the interface "hci0" and changing it to service "org.bluealsa" it started to work a bit better ;)
The other thing is that bluealsa process that has to be running. Back in the days you have provided a .service file which was working. Right now I've tried to use it and I cannot enable it - there's an error that this process isn't intended to be run in such a way. What is the proper way to launch bluealsa process so it awaits on connections? EDIT: |
This file was provided by some Linux distribution. There is no init/systemd integration in bluez-alsa repository. There is too much init systems out there to provide configuration for all of them, so I have decided to provide none :D. Every Linux distribution should provide proper init setup when packaging bluez-alsa. Regarding bluealsa startup. Right now, things should be much more simple then in v1.4.0. Just start bluealsa during system sturtup (after D-Bus is started and running), and everything should be just fine. Bluealsa shall detect BlueZ/oFono service startup and register with it automatically. |
Awesome! It really seems to work better than previous version! One last thing - I am not sure if it's fault of bluealsa or mopidy. |
It would be rather strange that bluealsa causes this problem. The AAC support in bluealsa means that the BT data can be encoded/decoded with AAC codec. However, the input audio still has to be in the raw PCM format. So, even though you've got audio encoded with AAC, it has to be decoded to PCM and then bluealsa will encode it again (sic!) with AAC. In theory it is possible not to reencode audio, but I do not know if anyone is doing it - except some embedded solutions. |
Thanks for explanation! |
Hello.
I'm running manually built version of bluealsa on my Raspberry Pi with Raspbian Buster. I've removed all pulseaudio packages and want to connect to my soundbar and play some music. I have 2 BT interfaces and I want to use hci0 to stream music to the soundbar (this one is a USB dongle).
I've built bluealsa with only one flag --enable-debug and also I've set in .profile file LIBASOUND_THREAD_SAFE=0
For now I am running bluealsa from the command line.
My /etc/asound.conf looks like this:
That's intro to my issue ;)
So I'm connecting to my soundbar using bluetoothctl and connection is successful. In bluealsa logs I can see:
But when I'll try to launch any sound using my device:
How can it be fixed? Any idea?
EDIT:
The same asound.conf file I've been using on my old Raspbian Jessie and it was working fine...
EDIT2:
This also fails:
The text was updated successfully, but these errors were encountered: