lukasjapan / bt-speaker

A simple Bluetooth Speaker Daemon for the Raspberry Pi 3
GNU General Public License v3.0
495 stars 95 forks source link

Sound is very distorted (only) when connected to macOS #40

Open nicokaiser opened 6 years ago

nicokaiser commented 6 years ago

In my setup I discovered a very strange behaviour: bt-speaker works fine on the Raspberry Pi 3 (USB Audio, USB Bluetooth Adapter, Wi-Fi and internal Bluetooth disabled).

However when I try to connect from a Mac (macOS), the sound is very distorted. This cannot relate to the known Raspberry Pi Bluetooth/Wi-Fi issues (as other devices work), but may be a missing piece in the decoder code.

When I change the play_command to cat > /tmp/out I can save the decoded stream and later play with aplay -f cd /tmp/out. I’ll attach the file, which may give an indica tion what goes wrong here… (you can play them with aplay -f cd out.pcm)

examples.zip

(Playing A2DP via BlueALSA/BlueALSA-aplay works also fine, for all devices including the macOS ones)

jesper216 commented 5 years ago

I have the exact same problem. Working on a mb pro 2014 model, MacOS 10.14.2 (18C54)

sibidharan commented 5 years ago

Any updates? Facing same problem on macOS Mojave, on MacBookPro Late 2015 15".

nicokaiser commented 5 years ago

I avoided this problem by using BlueALSA (and its own codecs) and a very small bluetooth-agent instead of these backported ones: https://github.com/nicokaiser/rpi-audio-receiver