My project to create a Multi Room Audio Setup in my home
Distribute the Line-Out Audio Signal from the TV in the Living Room to selected other Rooms in the flat.
- Philips TV
- Raspberry Pi Version 3
- HiFiBerry DAC+ADC: This is the only Raspberry Pi Hat that has a Line-In and it is exactly what i searched for my project.
- Latest Version of Raspbian
- Updated Kernel Image to support the DAC+ADC. Get it from the HiFiBerry-Website
- snapcast: snapserver and snapclient
- different Versions of Raspberry Pi
- attached Loudspeakers
- Latest Version of Raspbian
- snapcast: snapclient
- snapdroid (to control the volumes and groups)
to start streaming the Line-out of my TV to the network, i set up a small script, one commandline is enough:
arecord --device=plughw:1,0 --format S16_LE -c2 -r48000 /tmp/snapfifo
This command gets a buffer overflow from time to time. As a workaround I wrote this script:
#!/bin/bash
while [ true ] ; do
arecord --device=plughw:1,0 --format S16_LE -c2 -r48000 /tmp/snapfifo
sleep 1
done
It worked! But the network became heavily loaded and sometimes nearly unusable.