Skip to contentSkip to conversation

Does ALSA offer built-in PLUG for JACK and non-interleaved cards?

DISCUSSION [email protected] 2 participants 2 messages Apr 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,

2 quick questions:

1) A while ago I heard that the JACK plug has been included into the ALSA's default array of plugs. Also today I found this on the Web (for the asoundrc):

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
	}
}

Does this mean that now one can channel ALSA-only aware apps directly to JACK and if so, are there any penalties of doing it this way as oposed to using JACK-aware apps (i.e. Sample-sync?)?

2) Is there also a plug in ALSA that allows for non-interleaved cards (i.e. hdsp) to be directly talked to (i.e. using aplay) since by default aplay complains how the soundcard is not interleaved and hence it fails.

Apologies if these questions have been answered before. I did a bit of looking through the archives but was unable to find anything of relevance.

Many thanks for your help!

Best wishes,

Ico

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

#1 lore raw
Quoted 1 line

Does this mean that now one can channel ALSA-only aware apps directly to JACK

Yes.

Quoted 2 lines

and if so, are there any penalties of doing it this way as oposed to using JAC K-aware apps (i.e. Sample-sync?)?

Yes, you lose sample-synchronous guarantees. Also, there *might* be glitches in the audio output of the ALSA apps using this technique, though its unlikely to happen more frequently than if they were JACK apps.

Quoted 3 lines

2) Is there also a plug in ALSA that allows for non-interleaved cards (i.e. hd sp) to be directly talked to (i.e. using aplay) since by default aplay complai ns how the soundcard is not interleaved and hence it fails.

the plughw:N device should take care of this. if not, alsa-devel needs to know. i can use aplay to play stuff on my hdsp using plughw.

--p

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click