Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

oss_imux(7) [debian man page]

oss_imux(7)							    OSS Devices 						       oss_imux(7)

NAME
oss_imux - Input Muplexer audio driver. DESCRIPTION
IMUX is a virtual recording engine that permits up to 8 audio recording applications to run at the same time. Generally most soundcards permit only a single recording application to record the input source (via mic, line or CD). With IMUX, you can use up to 8 recording applications to record the same source in different sample rates, bits/sample and channels (mono/stereo). IMUX does all the rate and for- mat conversion in software. The applications think that they are actually getting data from the physical device. For instance, if you want to record the input from a CDROM in .wav format at 48Khz/8/Mono and at the same time you want to record the same stream in .mp3 format in 44.1Khz 16 bit stereo, with IMUX, you can start the wave recording application on the first IMUX device and start the MP3 encoder on the second IMUX device and both applications will run simultaneously thinking that they are getting data from the physical soundcard. CONFIGURATION
To add the IMUX driver you first need to ensure that there is a physical soundcard present and then you can run ossdetect -i to add it. You may want to select a master device by setting imux_masterdev, but the autodetection should provide a good default. After OSS restart, imux should be available. USAGE
Connect an input source to the soundcard's line-in jack. Using the Mixer app like ossmix (or any OSS compliant mixer) set the recording source to Line-In (eg ossmix line.rec ON) Now you can start recording the input in multiple formats and at different sample rates. The sim- plest example is: ossrecord -s48000 -b16 -c2 -d/dev/oss/oss_imux0/pcmin0 test1.wav & ossrecord -s8000 -b8 -d/dev/oss/oss_imux0/pcmin0 test2.wav & After a few minutes of recording you can stop them by placing the command in forground mode (type fg %1 or fg %2) and press ^c to stop. You now have two wav format files. test1.wav is a 48KHz 16bit stereo file and test2.wav is a 8Khz 8bit Mono file. You can now playback the files as follows: o ossplay -v test1.wav and it should show you that the file is indeed 48Khz 16bit stereo. o ossplay -v test2.wav - you should see that this file is indeed a 8Khz 8bit mono file. What you have essentially accomplished is recording a single input stream into two different formats at the same time. You can now extend this analogy to record the input in mp3 format and RealAudio format simultaneously. The IMUX control panel can be displayed by typing ossxmix -d<imux mixer number> (for e.g. in the above example, IMUX mixer is #2 so we type ossxmix -d2 There are record level control sliders for each input channel and it will show activity when a recording program is active on a particular channel. OPTIONS
o imux_masterdev: Selects which physical device to use as the Master device for the IMUX driver. Values: -1: automatically selected by OSS, 1-N: Audio device index of the master device (as reported by ossinfo -a), Default: -1. o imux_rate: Specifies what is the base sampling rate used by the imux driver. Values: 5000-96000 Default: 48000 o imux_devices: Specifies number of Input Multiplexer devices to setup. Values: 2-48 Default: 5 FILES
/etc/oss4/conf/oss_imux.conf Device configuration file AUTHOR
4Front Technologies 16 December 2012 oss_imux(7)

Check Out this Related Man Page

oss_madi(7)							    OSS Devices 						       oss_madi(7)

NAME
oss_madi - RME HDSP MADI and AES32 audio driver DESCRIPTION
Open Sound System driver for RME HDSP MADI and AES32 audio interfaces. This driver has been developed for RME HDSP MADI but it also supports HDSP AES32. The driver has been tested under Linux and Solaris under x86 and Sparc. The internal engine of the card supports 64 playback channels and 64 recording channels. Only the first channels are connected to the actual input and output ports of the card. The mixer section of the card has recording level settings for all inputs. There is also an output mixer. Each output channel has mixer sliders for corresponding input channel and corresponding audio playback channel. There is a full 64x(64+64) mixing matrix supported by the hardware. For the time being this mixer matrix cannot be accessed directly by the applications. However support for the SNDCTL_MIX_MATRIX_WRITE and SNDCTL_MIX_MATRIX_READ ioctl calls can be added in the future. DEVICE FILES
By default the driver will create input and output device files for each 32 stereo pairs. This can be changed by editing the settings in oss_madi.conf (see below). The application can set the devices to use 1, 2, 4, 8, 16, 32 or 64 channels. The device file being used selects the first channel slot within the available channels. For example pcm0 and pcmin0 sill select channel 0. Equally well pcm1 and pcmin1 will select channel slot 2 (assuming that madi_devsize option is set to 2). The first device (pcm0 and pcmin0) can be set to use up to 64 channels. The last devices (pcm31 and pcmin31) only support 1 or 2 channel mode. The other device files support channel configurations where the last channel doesn't exceed the number of total channels (madi_maxchannels). Also the driver will not let two device files to share any of the channels with some other open device file. This channel allocation mechanism gives maximum flexibility to the user. It is possible to use some output channels by multi channel appli- cation while the others are available for other applications. This works as long the channel allocations by different applications don't overlap. OPTIONS
o madi_maxchannels Number of channels supported by the driver. The default is 64 which is also the maximum. This parameter can be set to a lower value if full 64 channels are not required. With less channels the mixer/control panel interface will require less space on screen. o madi_devsize By default this parameter is set to 2 which means that a device file will be created for each stereo channel pair. Possible values are 1, 2, 4, 8, 16, 32 or 64. LIMITATIONS
o The current driver doesn't support all control panel features of the card. For example sampling rate is fixed to 48 kHz. More features will be added on contract. o Use of mmap() is and will not be supported. o Virtual mixer is not supported (yet). FILES
/etc/oss4/conf/oss_madi.conf Device configuration file. AUTHOR
4Front Technologies 16 December 2012 oss_madi(7)
Man Page