Open Sound System - API

API

The API is designed to use the traditional Unix framework of open, read, write, and ioctl, via special devices. For instance, the default device for sound input and output is /dev/dsp. Examples using the shell:

cat /dev/urandom >/dev/dsp # plays white noise through the speaker cat /dev/dsp >a.a # reads data from the microphone and copies it to file a.a

Read more about this topic:  Open Sound System