| 1 |
JACK <--> ALSA PCM plugin |
| 2 |
========================= |
| 3 |
|
| 4 |
This plugin converts the ALSA API over JACK (Jack Audio Connection |
| 5 |
Kit, http://jackit.sf.net) API. ALSA native applications can work |
| 6 |
transparently together with jackd for both playback and capture. |
| 7 |
|
| 8 |
ALSA apps (playback) -> ALSA-lib -> JACK plugin -> JACK deamon |
| 9 |
ALSA apps (capture) <- ALSA-lib <- JACK plugin <- JACK daemon |
| 10 |
|
| 11 |
This plugin provides the PCM type "jack". The typical configuration |
| 12 |
looks like below: |
| 13 |
|
| 14 |
pcm.jack { |
| 15 |
type jack |
| 16 |
playback_ports { |
| 17 |
0 alsa_pcm:playback_1 |
| 18 |
1 alsa_pcm:playback_2 |
| 19 |
} |
| 20 |
capture_ports { |
| 21 |
0 alsa_pcm:capture_1 |
| 22 |
1 alsa_pcm:pcapture_2 |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
Put the above to ~/.asoundrc (or /etc/asound.conf), and use "jack" PCM |
| 27 |
with your ALSA apps. For example, |
| 28 |
|
| 29 |
% aplay -Djack foo.wav |
| 30 |
|
| 31 |
The jack plugin can have two config options: playback_ports and |
| 32 |
capture_ports. Both are compound type config, including the following |
| 33 |
format: |
| 34 |
{ |
| 35 |
channel port-name |
| 36 |
channel port-name |
| 37 |
... |
| 38 |
} |
| 39 |
The first argument is the channel number (zero-based) and the second |
| 40 |
is the corresponding JACK port name. |
| 41 |
|
| 42 |
The plugin is installed in /usr/lib/alsa-lib directory as default, |
| 43 |
which is the default search path of additional plugins for alsa-lib. |
| 44 |
On a 64bit system like x86-64, the proper prefix option (typically, |
| 45 |
--prefix=/usr/lib64) must be given to configure script. |
| 46 |
|