1 .TH ALSA_IO "1" "!DATE!" "!VERSION!"
3 \fBalsa_in\fR, \fBalsa_out\fR \- Jack clients that perform I/O with an alternate audio interface
5 \fBalsa_in\fR [\fIoptions\fR]
7 \fBalsa_out\fR [\fIoptions\fR]
10 A JACK client that opens a specified audio interface (different to the
11 one used by the JACK server, if any) and moves audio data between its
12 JACK ports and the interface. alsa_in will provide data from the
13 interface (potentially for capture); alsa_out will deliver data to it
16 The audio interface used by alsa_in/alsa_out does not need to be
17 synchronized with JACK backend (or the hardware it might be using).
18 alsa_in/alsa_out tries to resample the output stream in an attempt to
19 compensate for drift between the two clocks.
21 As of jack-0.116.3 this works almost perfectly. It takes some time, to reach
22 absolute resample-rate stability. So give it some minutes (its intended to be
23 running permanently anyways)
27 \fB\-j \fI jack_client_name\fR
31 \fB\-d \fI alsa_device\fR
37 Verbose, prints out resample coefficient and other parameters useful for debugging, every 500ms.
38 also reports soft xruns.
42 Instrumentation. This logs the 4 important parameters of the samplerate control algorithm every 1ms.
43 You can pipe this into a file, and plot it. Should only be necessary, if it does not work as
44 expected, and we need to adjust some of the obscure parameters, to make it work.
45 Find me on irc.freenode.org #jack in order to set this up correctly.
47 \fB\-c \fI channels\fR
49 Set Number of channels.
51 \fB\-r \fI sample_rate\fR
53 Set sample_rate. The program resamples as necessary.
54 So you can connect a 44100 jackd to a soundcard only supporting
55 48000. (default is jack sample_rate)
57 \fB\-p \fI period_size\fR
59 Set the period size. It is not related to the jackd period_size.
60 Sometimes it affects the quality of the delay measurements.
61 Setting this lower than the jackd period_size will only work, if you
62 use a higher number of periods.
64 \fB\-n \fI num_period\fR
66 Set number of periods. See note for period_size.
70 Set the quality of the resampler from 0 to 4. can significantly reduce cpu usage.
72 \fB\-m \fI max_diff\fR
74 The value when a soft xrun occurs. Basically the window, in which
75 the dma pointer may jitter. I don't think its necessary to play with this anymore.
77 \fB\-t \fI target_delay\fR
79 The delay alsa_io should try to approach. Same as for max_diff. It will be setup based on \-p and \-n
80 which is generally sufficient.
82 \fB\-s \fI smooth_array_size\fR
84 This parameter controls the size of the array used for smoothing the delay measurement. Its default is 256.
85 If you use a pretty low period size, you can lower the CPU usage a bit by decreasing this parameter.
86 However most CPU time is spent in the resampling so this will not be much.
88 \fB\-C \fI P Control Clamp\fR
90 If you have a PCI card, then the default value (15) of this parameter is too high for \-p64 \-n2... Setting it to 5 should fix that.
91 Be aware that setting this parameter too low, lets the hf noise on the delay measurement come through onto the resamplerate, so this
92 might degrade the quality of the output. (but its a threshold value, and it has been chosen, to mask the noise of a USB card,
93 which has an amplitude which is 50 times higher than that of a PCI card, so 5 won't lose you any quality on a PCI card)
95 \fB\-S \fI server_name\fR
97 Server to connect to. This option permits to attach to a named jack2 server.