Differences between current version and revision by previous author of SoxNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Sunday, November 10, 2002 9:25:04 pm | by zcat(1) | |
Older page: | version 1 | Last edited on Tuesday, October 8, 2002 2:20:06 pm | by JohnMcPherson | Revert |
@@ -1,5 +1,7 @@
-Under linux, you can record just by catting from /dev/dsp or /dev/audio. These 2 devices behave in almost exactly the same way - the only difference is that by default /dev/audio uses m-law format while /dev/dsp uses 8 bit unsigned data by default. You can change these settings by using the ioctl(1
) function.
+'' There's a huge colection of examples on soxexam(1) - zcat''
+
+
Under linux, you can record just by catting from /dev/dsp or /dev/audio. These 2 devices behave in almost exactly the same way - the only difference is that by default /dev/audio uses m-law format while /dev/dsp uses 8 bit unsigned data by default. You can change these settings by using the ioctl(2
) function.
I use sox for converting between formats. Eg to play a raw file to the audio device:
sox -t ub sound.raw -t ossdsp /dev/dsp