rafael2k / darkice

DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server. This is the official development repository of Darkice.
http://www.darkice.org
200 stars 47 forks source link

Problem with darkice.cfg setup to work with bluez-alsa #133

Closed SuperSam56 closed 6 years ago

SuperSam56 commented 6 years ago

Hi, I simply want to setup a bluetooth phone device as an audio source device within Darkice. I'm using the last version of Raspbian (Stretch) for wich bluetooth audio is managed natively with bluez-alsa package (see https://github.com/Arkq/bluez-alsa : no need of Pulseaudio).

I tried many modification in home/pi/.asoundrc file like:

pcm.test {
    type plug
    slave.pcm {
        type bluealsa
        device "AC:EE:9E:2B:52:EB"
        profile "a2dp"
    }
}

to then refer it in [input] section of darkice.cfg file. device = test

Even if I am able to use arecord function with for instance arecord -D test -f cd test.wav (which work perfectly when i run aplay test.wav after, the sound is playing) Unfortunaltely this is not working in darkice. Could you tell me if this is either a limitation of Darkice input possibilities, bluez_alsa possibilities or am i wrong in the way to configure darkice.cfg?

here is the error i got from darkice when i launch it with this setup:

Using config file: /home/pi/darkice.cfg
Using ALSA DSP input device: test
Using POSIX real-time scheduling, priority 4
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM test
DarkIce: DarkIce.cpp:1273: can't open connector [0]

PS: on https://www.raspberrypi.org/blog/raspbian-stretch/ paragraph "Bluetooth audio": they say "...For Stretch, we are using the bluez-alsa package to make Bluetooth audio work with ALSA itself"