14 The audio device serves a one-level directory,
15 giving access to the stereo audio ports.
17 is the data file, which can be written for audio playback.
18 Audio data is a sequence of stereo samples, left sample first.
19 Each sample is a 16 bit little-endian two's complement integer;
20 the default sampling rate is 44.1 kHz.
26 represents the number of bytes buffered for output.
29 is driver specific control file and left undocumented here.
32 is a read only status file. The first line has a length of 32 bytes
33 including the newline and starts with the string
35 followed by the prefered write unit (in bytes) and the string
37 followed by the number of bytes currently queued for output. The
38 numbers are decimal and right-padded with spaces to fit.
39 After this fixed header, the contents of the file is driver specific.
42 is the control file associated with the audio port. Each source has
43 an associated stereo volume control,
44 ranging from 0 (quiet) to 100 (loud).
45 In addition, there are controls for the sampling rate,
46 latency control and for any tone controls.
48 return lines of the form
59 Valid sources depend on the particular audio device,
60 though all devices have an
62 stereo source, which controls the output volume from the D/A converter.
65 set the sampling frequency of the audio device and
67 limits the audio data output buffering to a number of samples.
69 Writes accept the same format except that for stereo sources
73 can be abbreviated to a single
75 if both should be set the same.
77 .B /sys/src/9/port/devaudio.c