Mapping of jack source to ALSA

From Opendigitalradio
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