usb/usbaudio [ -V ] [ -v volume ] [ -m mountpoint ] [ -s srvname ] [ ctrlno n ]
Without arguments, it scans the USB status files to find a mouse and uses the first one it finds. A pair of numeric arguments overrides this search with a specific USB controller and device. The options are
-f Run usbmouse in foreground.
-s Use the scrollwheel.
-v Verbose mode.
-a " accel" Accelerate mouse movements.
The -V flag (verbose) causes usbaudio to print information about the device on startup.
The -s flag specifies a name for a file descriptor to be posted in /srv .
Reading volume or audioctl yields the device's settings. The data format of volume is compatible with the soundblaster and produces something like
.EX audio out 65 treb out 0 bass out 0 speed out 44100This file can be written using the same syntax. The keyword out may be omitted. Settings are given as percentages of the range, except for speed which is in Hz.
The file audioctl provides more information, using up to 6 columns of 12 characters each. From left to right, the fields are: "control name" , in or out , "current value" , "minimum value" , maximum , and resolution . There are 3, 5, or 6 columns present. Maxima and resolution are omitted when they are not available or not applicable. The resolution for speed is reported as 1 (one) if the sampling frequency is continuously variable. It is absent if it is settable at a fixed number of discrete values only.
When all values from audioctl have been read, a zero-sized buffer is returned (the usual end-of-file indication). A new read will then block until one of the settings changes and then report its new value.
The file audioctl can be written like volume .
Audio data is written to audio and read from audioin . The data format is little endian, samples ordered primarily by time and secondarily by channel. Samples occupy the minimum integral number of bytes. Read and write operations of arbitrary size are allowed.
To use a USB mouse and audio device, put the following in your profile (replace x with your favorite initial volume setting):
.EX if (test -r '#U'/usb0) { usb/usbd usb/usbmouse -a 2 usb/usbaudio -v x usb/usbprint }Alternatively, just put usbstart in your profile.
Xitel AN1 Output only. Marginally enough to drive headphones. Has mute, volume, bass, treble controls.
Philips USB speakers, model DSS 370/17 Usbaudio acts on the volume .L + and .L - buttons.
Edirol UA-3 Playback and record. Playback only at 44.1 KHz, record at 32, 44.1 or 48 KHz. Playback volume control and mute control. The device only has analog (slider controlled) input volume control.
Edirol UA-1X Playback and record. Playback only at 32, 44.1 or 48 KHz, record at 8, 16, 22.05, 32, 44.1 or 48 KHz. Playback volume control and mute control (haven't tested recording, but I believe it'll work).
Xitel Pro HiFi-Link Playback only. 48 KHz only. There is a volume control but it isn't connected to the output, so does nothing.
Onkyo WAVIO series MA-500U Includes three optical digital interfaces, two analog, and an amplifier (15W + 15W).
Turtle Beach Audio Advantage micro Headset and S/Pdif out, volume and mute controls.