- Opens the the sound card (/dev/dsp or PulseAudio via
padsp) at the specified sample rate - send acquired waveforms to stdout.
makeor:
cc catdsp.c -o catdsp./catdsp-d devicename: Sets device name-mSets device to run in mono. Default is stereo.-r rateSets device sample rate. Default is 44100 Hz.
The program default is to output to /dev/dsp that is the file handle used by OSS.
Since 1999, many Linux OS have moved to ALSA, PulseAudio, or the like.
If you don't get data from:
./catdsptry the section applying to your OS.
Consider replacing this program with equivalent functionality pacat:
pacat -r
or if you really do want to use this program with PulseAudio, consider:
padsp ./catdsp
Perhaps try sox as a replacement for this program:
rec -t raw -b 16 -e signed -