Difference between revisions of "Tips And Tricks"

From Open Sound System
Jump to: navigation, search
m
m
Line 2: Line 2:
 
# Many drivers offer a 'vol' mixer control. If this is used as a recording source, than the current sound output will be recorded. Note that this is the mixed total of all sound played, not of a single program.
 
# Many drivers offer a 'vol' mixer control. If this is used as a recording source, than the current sound output will be recorded. Note that this is the mixed total of all sound played, not of a single program.
 
#: ossrecord -ivol blah.wav
 
#: ossrecord -ivol blah.wav
# vmix loopback driver can record the output of a program. Set vmix_numloops to 1 (or more) in vmix.conf, and make the program output to the newly created /dev/oss/vmix0/loop0 device. Than record from that device. e.g.  
+
# vmix loopback driver can record the output of a program. Set vmix_numloops to 1 (or more) in vmix.conf, and make the program output to the newly created /dev/oss/vmix0/loop0 device. Then record from that device. e.g.  
 
#: ossplay test.wav -d/dev/oss/vmix0/loop0 &
 
#: ossplay test.wav -d/dev/oss/vmix0/loop0 &
 
#: ossrecord test2.wav -d/dev/oss/vmix0/loop0
 
#: ossrecord test2.wav -d/dev/oss/vmix0/loop0
# OSS wrappers can be used to record the output of a program. vsound is one such wrapper. (vsound can't handle output to /dev/oss/* device nodes).
+
# OSS wrappers can be used to record the output of a program. vsound is one such wrapper. (vsound doesn't handle output to /dev/oss/* device nodes).
 
#: vsound ossplay test.wav
 
#: vsound ossplay test.wav

Revision as of 10:55, 8 April 2008

  • Recording sound output of a program:
  1. Many drivers offer a 'vol' mixer control. If this is used as a recording source, than the current sound output will be recorded. Note that this is the mixed total of all sound played, not of a single program.
    ossrecord -ivol blah.wav
  2. vmix loopback driver can record the output of a program. Set vmix_numloops to 1 (or more) in vmix.conf, and make the program output to the newly created /dev/oss/vmix0/loop0 device. Then record from that device. e.g.
    ossplay test.wav -d/dev/oss/vmix0/loop0 &
    ossrecord test2.wav -d/dev/oss/vmix0/loop0
  3. OSS wrappers can be used to record the output of a program. vsound is one such wrapper. (vsound doesn't handle output to /dev/oss/* device nodes).
    vsound ossplay test.wav