Re: [LAU] Soundcard question: Was "Equivalent to reason"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: J M Needham <J.M.Needham@...>
Cc: <linux-audio-user@...>
Date: Friday, May 16, 2008 - 10:51 am

Hi!
In general you can't. But there is one trick I know. You can configure
alsa's default device to be a jack-client. that means, your app says let me
use ALSA and alsa just says: None of my worry I pass it on to jack. You can do
that in your .asoundrc in your homedirectory. I did it like this:
edit ~/.asoundrc
pcm.!default
{
type plug
slave
{
pcm "myjack"
}
}
pcm.myjack
{
type jack
playback_ports
{
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports
{
# I use capture_1 twice, because it give stereo microphone input
0 alsa_pcm:capture_1
1 alsa_pcm:capture_1
}
}

You should make sure, there is no other "pcm.!default" in your .asoundrc. If
there is noe move it to something like "pcm.old_default".
So when you run on simple ALSA, no JACK at all, you could still easily use
alsa by:
1. giving the proper "old_default" device as alsa-device to the app you run.
OR:
2. By chaning "pcm.!default" to "pcm.old_default" and vice versa.
For me it works perfectly with most apps.
By wrapping the myjack pcm-device in a plug (pcm".!default" I even get some
nice and comfortable conversions done.
Hope that helps!
Kindest regards
Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Equivalent to reason?, Mark Freeman, (Thu May 15, 6:18 pm)
Re: [LAU] Equivalent to reason?, James Stone, (Thu May 15, 10:45 pm)
Re: [LAU] Equivalent to reason?, Julien Claassen, (Thu May 15, 6:27 pm)
Re: [LAU] Equivalent to reason?, Mark Freeman, (Thu May 15, 7:18 pm)
Re: [LAU] Equivalent to reason?, Julien Claassen, (Thu May 15, 7:48 pm)
Re: [LAU] Equivalent to reason?, Mark Freeman, (Thu May 15, 8:01 pm)
Re: [LAU] Equivalent to reason?, Arnold Krille, (Fri May 16, 7:37 am)
Re: [LAU] Equivalent to reason?, Mark Knecht, (Thu May 15, 7:22 pm)
Re: [LAU] Equivalent to reason?, Paul Coccoli, (Fri May 16, 9:03 pm)
Re: [LAU] Equivalent to reason?, Justin Smith, (Thu May 15, 7:46 pm)
Re: [LAU] Equivalent to reason?, Lee Revell, (Thu May 15, 8:03 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 9:19 pm)
Re: [LAU] Equivalent to reason?, Lee Revell, (Fri May 16, 9:23 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 10:23 pm)
Re: [LAU] Equivalent to reason?, , (Fri May 16, 10:43 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 9:34 pm)
Re: [LAU] Equivalent to reason?, Lee Revell, (Fri May 16, 9:36 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 9:51 pm)
Re: [LAU] Equivalent to reason?, Folderol, (Fri May 16, 9:55 pm)
Re: [LAU] Equivalent to reason?, Dave Phillips, (Fri May 16, 11:13 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 10:11 pm)
Re: [LAU] Equivalent to reason?, , (Fri May 16, 10:27 pm)
Re: [LAU] Equivalent to reason?, Darren Landrum, (Fri May 16, 10:02 pm)
Re: [LAU] Equivalent to reason?, Lee Revell, (Fri May 16, 9:51 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 10:06 pm)
Re: [LAU] Equivalent to reason?, Phil Sexton, (Fri May 16, 10:31 pm)
Re: [LAU] Equivalent to reason?, Chris Cannam, (Fri May 16, 10:51 pm)
Re: [LAU] Equivalent to reason?, Lee Revell, (Sat May 17, 12:34 am)
Re: [LAU] Equivalent to reason?, Mark Knecht, (Sat May 17, 1:41 am)
Re: [LAU] Equivalent to reason?, Justin Smith, (Thu May 15, 8:16 pm)
Re: [LAU] Equivalent to reason?, Joakim Hernberg, (Fri May 16, 8:06 am)
Re: [LAU] Soundcard question: Was "Equivalent to reason", Julien Claassen, (Fri May 16, 10:51 am)
Re: [LAU] Equivalent to reason?, Ray Rashif, (Fri May 16, 9:37 am)
Re: [LAU] Equivalent to reason?, Julien Claassen, (Fri May 16, 9:45 am)
Re: [LAU] Equivalent to reason?, Lee Revell, (Thu May 15, 9:43 pm)
Re: [LAU] Equivalent to reason?, Justin Smith, (Fri May 16, 3:32 am)
Re: [LAU] Equivalent to reason?, Salvatore Di Pietro, (Fri May 16, 10:47 pm)