Reply To: Bluetooth – latency via Squeezebox Server

Max2Play Home Forums Max2Play Add-ons Bluetooth – latency via Squeezebox Server Reply To: Bluetooth – latency via Squeezebox Server

11. Juni 2021 at 21:03 #51329

Hi!

Sorry to tag along this thread: this is my first post and I believe I cannot create a new topic.

So I’ve spent a few hours trying to get streaming from my phone (Samsung Galaxy S8) to my LMS instance over Bluetooth on my pi to work with no success.

Streaming directly to the Max2Play Soundcard works fine (using it as a bluetooth speaker) but streaming to Squeezebox Server does not work for me.

When I click on “Bluetooth” in Favorites, nothing happens. The “timer” stays at 0:00 or goes up to 2-3 seconds and then stops and no sound comes out of my setup. See picture: No sound playing

Also, instead of being named “Bluetooth – [name of my device]”, my favorite is just named “Bluetooth”.

I believe my device is connected as it’s name is shown in green. See my debug info below.

I’m running version 2.53 of Max2Play over the Raspberry Pi 7“ Touch Display Bundle with HiFiBerry.

I deactivated Multisqueeze just to ease troubleshooting.

Below is the debug info from Squeezelite:

#### SQUEEZELITE VERSION ####
Squeezelite Max2Play v1.0.3 based on v1.8.7-999, Copyright 2012-2015 Adrian Smith, 2015-2017 Ralph Irving.

#### SQUEEZELITE BUILDOPTIONS ####
Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC

#### AUDIOPLAYER CONFIG ####
### Configuration of Audioplayers
SQUEEZELITE_PARAMETER=-o sysdefault:CARD=sndrpihifiberry -a 80:4::
SQUEEZESLAVE_PARAMETER=-n plugequal
SHAIRPORT_PARAMETER=-d default:CARD=sndrpihifiberry
USE_USB_DAC=0
USE_EQUALIZER=0
SYSTEM_USER=pi
YMPD_PARAMETER=–webport 8081
MULTISQUEEZE_PLAYERCOUNT=0
MULTISQUEEZE_NAME_0=Kitchen
MULTISQUEEZE_PARAMETER_0=-o sysdefault:CARD=sndrpihifiberry -a 80:4:: -B
MULTISQUEEZE_NAME_1=Kitchen Secondary
MULTISQUEEZE_PARAMETER_1=-o default:CARD=ALSA -a 80::: -B
BLUEALSA_PLAY_AUDIOCARD=hw:1,0
BLUEALSA_PLAY_MIXER=Digital
BLUETOOTH_MACADDRESS_MAINPLAYER=b8:25:eb:c1:71:f0

#### SQUEEZELITE -l ####
Output devices:
null – Discard all samples (playback) or generate zero samples (capture)
equal
plugequal – Equalizer for plughw:0,0
bluetooth – Your Bluetooth device C0:28:8D:88:1C:6D
default:CARD=ALSA – bcm2835 ALSA, bcm2835 ALSA – Default Audio Device
sysdefault:CARD=ALSA – bcm2835 ALSA, bcm2835 ALSA – Default Audio Device
dmix:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Direct sample mixing device
dmix:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Direct sample snooping device
hw:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Hardware device with all software conversions
default:CARD=sndrpihifiberry – snd_rpi_hifiberry_dacplus, – Default Audio Device
sysdefault:CARD=sndrpihifiberry – snd_rpi_hifiberry_dacplus, – Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Hardware device with all software conversions

#### SHAIRPORT (SYNC) VERSION ####
3.1.1-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/usr/local/etc

#### OUTPUT SOUND DETAILS CARD 0 ####
closed

#### OUTPUT SOUND DETAILS CARD 1 ####
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (384000/8)
period_size: 960
buffer_size: 3840

The bluetooth debug info is below:

#### Bluetooth Installation ####

#### Bluetooth Dongle ####
hci0: Type: Primary Bus: UART
BD Address: B8:27:EB:6A:D3:8C ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:4578983 acl:7452 sco:0 events:617 errors:0
TX bytes:24656 acl:576 sco:0 commands:162 errors:0

#### DEVICE Pepin’s Galaxy S8 ####
spawn /usr/bin/bluetoothctl
Waiting to connect to bluetoothd…
[0;94m[bluetooth][0m#

[[0;92mNEW[0m] Controller B8:27:EB:6A:D3:8C MyServer [default]
[0;94m[bluetooth][0m#

[[0;92mNEW[0m] Device C8:D7:B0:40:71:D4 Pepin’s Galaxy S8
[0;94m[bluetooth][0m#
[0;94m[Pepin’s Galaxy S8][0m# info C8:D7:B0:40:71:D4
Device C8:D7:B0:40:71:D4
Name: Pepin’s Galaxy S8
Alias: Pepin’s Galaxy S8
Class: 0x5a020c
Icon: phone
Paired: yes
Trusted: yes
Blocked: no
Connected: yes

#### BLUEALSA RUNNING ####
1

#### BLUETOOTH SQUEEZEBOX SERVER AUTOSTART ####
Reading last 10 lines of /var/log/daemon.log
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Off – Stop Stream on Squeezebox Server (Restore Stream before Bluetooth)

Many thanks in advance

Stéphane