|
NAMEvmixctl - Open Sound System utility to control the vmix subsystem.SYNOPSISo vmixctl attach [attach_options...] audiodev [inputdev] o vmixctl detach [attach_options...] audiodev o vmixctl rate audiodev samplerate o vmixctl remap audiodev channels DESCRIPTIONThe vmixctl program can be used to attach or detach the virtual mixer subsystem (vmix) to/from audio devices. In addition it can be used to control vmix related parameters such as the sampling rate to be used with the device.By default most OSS drivers will attach virtual mixer to the primary audio device of the sound card (or motherboard audio chip) when the device is attached. However possible secondary audio devices (engines) will not have vmix attached by default. In additional professional audio devices will be attached without vmix because mixing may cause some unwanted distortion to the signal. ATTACHING VMIX TO AN AUDIO DEVICEThere are two forms of vmixctl attach command:
To find out the right device file names (audiodev and inputdev) you can use the "ossinfo -a" command. ATTACH OPTIONS
EXAMPLES
SETTING THE SAMPLING RATE USED BY VMIXThe virtual mixer subsystem will set the physical audio devce(s) to use fixed sampling rate that is 48000 Hz by default. It is possible to use "vmixctl rate audiodev" to switch vmix to use some different rate with this device (pair). You should use "ossinfo -a -v2" to verify that the sampling rate is actually supported by the device. Otherwise the actual device may enforce vmix to use the nearest supported rate (or some default rate).The "audiodev" parameter is the device file name (see ossinfo -a) that is used for playback. The input device name doesn't need to be specified. Note that some professional audio devices may be locked to external sampling rate or some fixed rate (defined in ossmix/ossxmis). In such case the rate is not changeable by vmixctl. EXAMPLE
CHANGING THE VMIX CHANNEL MAPThe vmix subsystem can remap channels, so that all output sent to a channel via vmix will end up being played on a different channel. The syntax uses a list of channels, where typically 0=default, 1=left, 2=right, 3=center, 4=lfe, 5=left surround, 6=right surround, 7=left rear and 8=right rear. Note that vmix-channels should be set first to Multich if vmix is to recognize the extra channels.EXAMPLES
DETACHING VMIX FROM AN AUDIO DEVICEIt is possible to detach vmix from an audio device if it causes problems with applications by using "vmix detach audiodev".It is not possible to detach and (re)attach vmix to the same device more than few times. Use the vmix-enable setting in the control panel (ossxmix or ossmix) to disable/re-enable vmix if you need to do it repeatedly. Use vmix detach only if you need to attach virtual mixer using different parameters. EXAMPLE
POSSIBLE BUGS
SEE ALSOsoundoff(1), soundon(1), ossmix(1), ossxmix(1)FILES/usr/local/sbin/vmixctAUTHOR4Front Technologies
Visit the GSP FreeBSD Man Page Interface. |