Posted March 10, 2003
This is the
Copyright 2003 Tom Clegg.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
There is no warranty. If you need a warranty, you cannot use this software. Sorry!
dsprec [-f DEV] [rate R] [channels C] [bits B]
$ dsprec rate 44100 bits 16 channels 2 > outfile.raw
Sample rate, word size, and number of channels are untouched if they are not specified. You should always specify them.
cd /usr/local/src fetch http://tomclegg.net/software/dsprec-0.2.tar.gz tar xzf dsprec-0.2.tar.gz cd dsprec-0.2 make make install
You need sound support (
I wrote this to support MP3 streaming with mp3cat. For some reason, I couldn't find an existing program to do this simple job reliably.
dsprec channels 2 rate 44100 bits 16 | \ lame -h -x -b 64 -a - - | \ mp3cat --clean --size $((60 * 60 * 8192)) - mp3dir \ 2>&1
If you try