<br><br><div class="gmail_quote">On Sat, Jun 30, 2012 at 12:27 AM, Tanu Kaskinen <span dir="ltr"><<a href="mailto:tanuk@iki.fi" target="_blank">tanuk@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, 2012-06-29 at 23:54 +0900, Amar Akshat wrote:<br>
> Well I understand what you mean, however the problem at my end is a<br>
> combination of two, in which automatic routing just can't work as far<br>
> as I can see.<br>
><br>
><br>
> 1). I need to be able to specify sound card "name", so that my program<br>
> can operate sound to/from that device.<br>
<br>
</div>You're apparently using an alsa application. If it asks you a sound card<br>
name, tell it to use "default". That should then forward the sound to<br>
pulseaudio if alsa is set up correctly.<br></blockquote><div><br></div><div>Let me explain, I am in the process of building an application ("my program"), which allows user to switch sound cards (as in left usb handset, right usb handset and oboard), and I am going to store sound_cards, in variables like following, </div>
<div><br></div><div>onboard = "pulse_onboard"</div><div>right_handset = "pulse_right"</div><div>left_handset = "pulse_left"</div><div><br></div><div>Depending upon user's current state, I am going to marshal request to my back-end program, which takes sound card as plain strings. So I can't use default, I need to be able to specify the sound_card name which can be any of the three (namely onboard, right and left).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> 2). Multiple applications within my program shall be able to use the<br>
> same sound -card.<br>
<br>
</div>I don't understand what you're trying to say here. What's the difference<br>
between "application" and "my program" here? If you tell all<br>
applications to use "default", then all applications will use the same<br>
sound card, and your problem is solved?<br>
<div class="im"><br></div></blockquote><div>As explained above I can't tell my program to use default, because user may change his preference by the press of a button to switch the program, when it is running.</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> Now, I can shoot item #2, by creating a virtual device in asoundrc,<br>
> but to shoot item# 1, I need sound_device name, which has to be same<br>
> for sink and source. By using tools (eg. pavucontrol), I can specify a<br>
> default behaviour, but can I specify name based sound routing ? I mean<br>
> is it possible that I specify a device there say, X - which can use<br>
> pulse_1 as sink and pulse_2 as source.<br>
<br>
</div>With pavucontrol you can route each application where ever you want. I<br>
feel that I'm not understanding what you're asking...<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Am I a bit clear this time ? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Tanu<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><p><br></p><p>Thank you... </p><p><b>Amar Akshat (<span style="font-size:9pt">アマール)</span></b></p><p style="text-align:left"><span style="color:rgb(27,27,27);font-family:'Lucida Grande',Verdana,'Lucida Sans Regular','Lucida Sans Unicode',Arial,sans-serif;font-size:13px;text-align:-webkit-auto;background-color:rgb(244,244,244)"> <i>"Walking on water and developing software from a specification are easy if both are frozen."</i></span></p>
<br>