Update README.md

This commit is contained in:
Johannes Pohl 2016-02-09 13:20:58 +01:00
parent bfc04ffde2
commit 77b781c6a8

View file

@ -63,6 +63,14 @@ Install missing dependencies:
$ sudo apt-get -f install $ sudo apt-get -f install
Configuration
-------------
After installation, Snapserver and Snapclient are started with the command line arguments, that are configured in `/etc/default/snapserver` and `/etc/default/snapclient`.
Allowed options are listed in the man pages (`man snapserver`, `man snapclient`) or by invoking the snapserver or snapclient with the `-h` option.
Different streams can by configured with a list of `-s` options, e.g.:
SNAPSERVER_OPTS="-d -s pipe:///tmp/snapfifo?name=Radio&sampleformat=48000:16:2&codec=flac -s file:///home/johannes/Musik/Some%20wave%20file.wav?name=File"
Test Test
---- ----
@ -71,6 +79,10 @@ You can test your installation by copying random data into the server's fifo fil
$ sudo cat /dev/urandom > /tmp/snapfifo $ sudo cat /dev/urandom > /tmp/snapfifo
All connected clients should play random noise now. You might raise the client's volume with "alsamixer". All connected clients should play random noise now. You might raise the client's volume with "alsamixer".
It's also possible to let the server play a wave file. Simply configure a `file` stream in `/etc/default/snapserver`, and restart the server:
SNAPSERVER_OPTS="-d -s file:///home/johannes/Musik/Some%20wave%20file.wav?name=test"
When you are using a Raspberry pi, you might have to change your audio output to the 3.5mm jack: When you are using a Raspberry pi, you might have to change your audio output to the 3.5mm jack:
#The last number is the audio output with 1 being the 3.5 jack, 2 being HDMI and 0 being auto. #The last number is the audio output with 1 being the 3.5 jack, 2 being HDMI and 0 being auto.