Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    652

    [Howto] Bluetooth streaming to / from LMS (ALSA only / no PulseAudio)

    Since I never saw the point of PulseAudio, I've set up Bluetooth streaming on a system without it. Surprisingly, this is actually very simple and works out of the box.
    Note that if you have PulseAudio installed, you may have to disable the bluez/PulseAudio/sound integration.

    Setup
    Install bluez (v5)
    Install BlueALSA (packages available for Gentoo, Arch, maybe others. It seems that in Ubuntu, the package is the old (=wrong) version for bluez4)

    Installation for Gentoo:
    Code:
    emerge -av media-sound/bluez-alsa net-wireless/bluez
    Connect device (XX:XX:XX:XX:XX:XX = your device address):
    Code:
    raspi ~ $ sudo /etc/init.d/bluetooth start
    raspi ~ $ sudo /etc/init.d/bluealsa start
    raspi ~ $ bluetoothctl 
    [bluetooth]# power on
    [bluetooth]# scan on
    [bluetooth]# discoverable on
    [bluetooth]# agent on
    [bluetooth]# default-agent
    [bluetooth]# pair XX:XX:XX:XX:XX:XX
    [bluetooth]# trust XX:XX:XX:XX:XX:XX
    [bluetooth]# connect XX:XX:XX:XX:XX:XX
    [bluetooth]# scan off
    [bluetooth]# discoverable off
    [bluetooth]# exit
    Playback / streaming to Bluetooth device:
    Code:
    squeezelite -s localhost -o "bluealsa:HCI=hci0,DEV=XX:XX:XX:XX:XX:XX,PROFILE=a2dp" -r 48000-48000 -a 40:4:16:1 -R -u vE
    Recording / stream from Bluetooth device
    pair / connect your device (e.g. phone) as described above
    install the WaveInput plugin
    create a favorite with a URL like
    Code:
    wavin:bluealsa:HCI=hci0,DEV=XX:XX:XX:XX:XX:XX,PROFILE=a2dp

    Tested on a RPi3 (integrated Bluetooth adapter) with a Bluetooth headphone / Android phone.

  2. #2
    Junior Member
    Join Date
    Oct 2016
    Posts
    2
    Thank you so much for pointing in the right direction. I also wanted to avoid the abyss of Pulseaudio just for streaming from my phone to LMS.

    I had to adjust your instructions in some areas. The following instructions are for debian jessie based distributions, in my case armbian on an armhf6 based system.

    1. bluez-alsa is not available in debian repos anymore, furthermor the interconnec to bluez is unavailable, thus you have to manually build bluealsa from sources: bluez-alsa on github

    You need to make sure that you meet the dependencies:
    Code:
    $ apt-get update & apt-get install libfdk-aac-dev libsbc-dev libsbc1 libglib2.0-bin libglib2.0-dev libgtk2.0-dev libortp-dev libortp9 libalsa-ocaml
    (Note: Not all of these might be necessary, but for me it worked after installing all of these)

    After getting these in place and cloning the repo, you can go an build the package:

    Code:
    $ autoreconf --install
    $ mkdir build && cd build
    There is an important change to the config command before building:
    Code:
    $ ../configure --enable-aac --enable-debug --with-alsaplugindir=/usr/lib/arm-linux-gnueabihf/alsa-lib/
    Then
    Code:
    $ make && make install
    The rest can be followed according to your instruction.

  3. #3
    Any Chance for a how to for Picoreplayer?

    Please?!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •