Skip to content
forked from pozar/catdsp

catdsp: Opens the the sound card (ie. /dev/dsp) sets the sample rate and sends audio out to STDOUT.

Notifications You must be signed in to change notification settings

scivision/catdsp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

catdsp

  1. Opens the the sound card (/dev/dsp or PulseAudio via padsp) at the specified sample rate
  2. send acquired waveforms to stdout.

Build

make

or:

cc catdsp.c -o catdsp

Usage

./catdsp
  • -d devicename: Sets device name
  • -m Sets device to run in mono. Default is stereo.
  • -r rate Sets device sample rate. Default is 44100 Hz.

No Sound Data!

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:

./catdsp

try the section applying to your OS.

PulseAudio

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

Mac and others not working

Perhaps try sox as a replacement for this program:

rec -t raw -b 16 -e signed -

About

catdsp: Opens the the sound card (ie. /dev/dsp) sets the sample rate and sends audio out to STDOUT.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages

  • C 99.2%
  • Makefile 0.8%