Electronic Music mailing list archives

Previous Message: Re: Equivalent to reason?
Next Message: Re: Equivalent to reason?

From: Julien Claassen ()
Date: May 16, 2008
Subject: Re: Soundcard question: Was "Equivalent to reason"
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 [EMAIL REMOVED] http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

+ Equivalent to reason? Mark Freeman (05/15/08)
+---Re: Equivalent to reason? Julien Claassen (05/15/08)
+---Re: Equivalent to reason? Mark Freeman (05/15/08)
+------Re: Equivalent to reason? Julien Claassen (05/15/08)
+---Re: Equivalent to reason? Mark Knecht (05/15/08)
+---Re: Equivalent to reason? Justin Smith (05/15/08)
+---Re: Equivalent to reason? Mark Freeman (05/15/08)
+---Re: Equivalent to reason? Lee Revell (05/15/08)
+---Re: Equivalent to reason? Justin Smith (05/15/08)
+---Re: Equivalent to reason? Lee Revell (05/15/08)
+---Re: Equivalent to reason? James Stone (05/15/08)
+---Re: Equivalent to reason? Justin Smith (05/15/08)
+---Re: Equivalent to reason? Arnold Krille (05/16/08)
+---Re: Equivalent to reason? Joakim Hernberg (05/16/08)
+------Re: Soundcard question: Was "Equivalent to reason" J M Needham (05/16/08)
+---------Re: Soundcard question: Was "Equivalent to reason" Julien Claassen (05/16/08)
+---------Re: Soundcard question: Was "Equivalent to reason" Paul Davis (05/16/08)
+---Re: Equivalent to reason? Ray Rashif (05/16/08)
+---Re: Equivalent to reason? Julien Claassen (05/16/08)
+---Re: Equivalent to reason? Paul Coccoli (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? Lee Revell (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? Lee Revell (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? Lee Revell (05/16/08)
+---Re: Equivalent to reason? Folderol (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? hollunder (05/16/08)
+---Re: Equivalent to reason? hollunder (05/16/08)
+---Re: Equivalent to reason? Chris Cannam (05/16/08)
+---Re: Equivalent to reason? Lee Revell (05/16/08)
+---Re: Equivalent to reason? Mark Knecht (05/16/08)

Previous Message: Re: Equivalent to reason?
Next Message: Re: Equivalent to reason?