Mapping of jack source to ALSA

From Opendigitalradio
Revision as of 16:32, 7 July 2011 by Coinchon (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In order to map jack source to ALSA (to use aplay or arecord for example), create (or edit) .asoundrc in your home directory and add the following (or get inspired by this example):

pcm.jackplug {
	type plug
	slave { pcm "jack" }
}

pcm.jack {
	type jack
	playback_ports {
		0 alsa_pcm:playback_1
		1 alsa_pcm:playback_2
	}
	capture_ports {
		0 alsa_pcm:capture_1
		1 alsa_pcm:capture_2
	}
}



Reference: http://www.alsa-project.org/main/index.php/Asoundrc#JACK_plugin

Personal tools