diff --git a/README.md b/README.md index 9b608c66..ec6cb588 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,14 @@ Install missing dependencies: $ 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 ---- @@ -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 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: #The last number is the audio output with 1 being the 3.5 jack, 2 being HDMI and 0 being auto.