<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hi Saurabh,<br>Were n't you using Telepathy for your VOIP application ? I think farsight (StreamedMedia plugin on gstreamer) handles all such intricacies.<br><br>If your application is SIP based, you can just use telepathy-sofiasip as your backend.<br><br>Regards,<br>Chitti <br><br>--- On <b>Sun, 5/2/10, maemo-developers-request@maemo.org <i><maemo-developers-request@maemo.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><div class="plainMail">Message: 8<br>Date: Sun, 2 May 2010 08:43:04 +0530<br>From: saurabh aggarwal <<a ymailto="mailto:aggarwal.saurabh@gmail.com" href="/mc/compose?to=aggarwal.saurabh@gmail.com">aggarwal.saurabh@gmail.com</a>><br>Subject: Re: Audio Routing API<br>To: Martin Grimme <<a ymailto="mailto:martin.grimme@gmail.com"
href="/mc/compose?to=martin.grimme@gmail.com">martin.grimme@gmail.com</a>><br>Cc: <a ymailto="mailto:maemo-developers@maemo.org" href="/mc/compose?to=maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>Message-ID:<br> <<a ymailto="mailto:l2le3a9904f1005012013q167658ccre8a0d368ff6b352e@mail.gmail.com" href="/mc/compose?to=l2le3a9904f1005012013q167658ccre8a0d368ff6b352e@mail.gmail.com">l2le3a9904f1005012013q167658ccre8a0d368ff6b352e@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Thanks Martin, I have a feeling that I should be able to set those flags in<br>alsa using the gstreamer APIs and pulsesink.<br><br>The pulsesink object does accept a propllist, and using pactl if you look at<br>the pulsesink, there seem to be properties that should be able to switch<br>between headset and speaker. Like x-maemo.mode which seems to be IHF or HP<br>depending on whether pulsesink is in headset or
speaker mode.<br><br>I have been trying to use these flags, but haven't been able to do so till<br>now. If someone can help here, that would be great.<br><br>-Saurabh<br><br>On Sat, May 1, 2010 at 3:46 AM, Martin Grimme <<a ymailto="mailto:martin.grimme@gmail.com" href="/mc/compose?to=martin.grimme@gmail.com">martin.grimme@gmail.com</a>>wrote:<br><br>> Hi,<br>><br>> alsamixer -c0<br>> reveals a switch to route audio to the earpiece (I don't remember it's<br>> exact name). I don't think you can route sound to the earpiece any<br>> other way. Somebody please correct me if I'm wrong.<br>><br>><br>> Martin<br>><br>><br>> 2010/4/28, saurabh aggarwal <<a ymailto="mailto:aggarwal.saurabh@gmail.com" href="/mc/compose?to=aggarwal.saurabh@gmail.com">aggarwal.saurabh@gmail.com</a>>:<br>> > We are developing a VoIP application, and have it running for Maemo5<br>> (using<br>> >
gstreamer/pulseaudio).<br>> ><br>> > The problem now is that the output being used is the speaker, and not the<br>> > headphone/earpiece.<br>> ><br>> > I have tried a couple of things (which haven't worked) like -<br>> > gst-launch pulsesrc device=source.voice ! pulsesink device=sink.voice<br>> > (outputs voice from speaker)<br>> ><br>> > gst-launch pulsesrc ! pulsesink device=sink.hw0 x-maemo.mode="hp" (I get<br>> an<br>> > error no element "hp"). Have tried the same with "ihf".<br>> ><br>> > If someone can point me to the right direction, that would be really<br>> > appreciated.<br>> ><br>> > -Saurabh<br>> ><br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.maemo.org/pipermail/maemo-developers/attachments/20100502/31d0d54f/attachment-0001.htm"
target="_blank">http://lists.maemo.org/pipermail/maemo-developers/attachments/20100502/31d0d54f/attachment-0001.htm</a>><br>***********************************************<br></div></blockquote></td></tr></table><br>