Audio device manager (QNX)
Audio [options] [driver [driver_options]]...
driver | Hardware | Default options |
---|---|---|
sb | Soundblaster | -b220 -d1 -i7 |
pas | ProAudio Spectrum | -b388 -d1 -i7 |
mss | Microsoft Sound System | -b530 -d1 -i7 |
mpu | Roland MPU-401 | -b330 -i2 |
adlib | Adlib | -b388 |
driver_options may be specified to override the defaults listed in the table above. Available options are:
The Audio manager handles playing and recording sounds on common audio hardware through the device /dev/dsp. Recording is done by reading from /dev/dsp and playback is done by writing to /dev/dsp. Recording and playback parameters may be adjusted via C programs through ioctl() calls. Some of the most commonly adjusted parameters include volume level, sample rates and sample resolution.
A technical note on audio programming can be found in the /etc/readme/technotes/ directory which documents the available ioctl() calls, and demo source code is shipped with the operating system under the /usr/demo/src/audio directory.
Start Audio using a Soundblaster card and default options:
Audio sb &
Start Audio using a Soundblaster card in the default configuration. Record a test audio sample into mysounds and play it back:
Audio sb & cat /dev/dsp >mysounds
Stop the sampling operation by typing Ctrl-C.
Now play it back:
cat mysounds >/dev/dsp
Audio closes its standard input, standard output and standard error after initialization has been completed. Error messages during initialization will be written to standard error.
Audio adopts the character special file /dev/dsp with which applications may perform I/O in order to playback and record sound data.
Audio normally will not terminate. However, it is possible for it to exit if it encounters errors on startup, or if it has not been started in the background (in which case it will fork itself and the foreground copy will exit with an exit status of 0).
/etc/readme/technotes/Audio.doc, /usr/demo/src/audio/vplay, /usr/demo/src/audio/vplay.c, /usr/include/sys/audio.h