Change from sound output from loud speaker to normal ear speakers on HTC devices

CI
CalvIA IA
Wed, Oct 8, 2008 11:39 AM

Hi,

For calls, how to change from loud speaker to normal ear speakers on HTC
devices with WM6?

Tried using "pjsua_set_snd_dev ();"
it returns "Unknown error".
How to retrieve all available playback or output devices?

Thanks.

Calvin

Hi, For calls, how to change from loud speaker to normal ear speakers on HTC devices with WM6? Tried using "pjsua_set_snd_dev ();" it returns "Unknown error". How to retrieve all available playback or output devices? Thanks. Calvin
NI
Nanang Izzuddin
Thu, Oct 9, 2008 4:43 PM

Hi,

On Wed, Oct 8, 2008 at 6:39 PM, CalvIA IA calvia08@gmail.com wrote:

Hi,

For calls, how to change from loud speaker to normal ear speakers on HTC
devices with WM6?

Routing audio on WM has been discussed before, no real or general
solution for this yet, it seems to be tricky/manufacturer specific,
CMIIW.

Tried using "pjsua_set_snd_dev ();"
it returns "Unknown error".
How to retrieve all available playback or output devices?

Please see pjsua_enum_snd_devs().

Regards,
nanang

Hi, On Wed, Oct 8, 2008 at 6:39 PM, CalvIA IA <calvia08@gmail.com> wrote: > Hi, > > For calls, how to change from loud speaker to normal ear speakers on HTC > devices with WM6? > Routing audio on WM has been discussed before, no real or general solution for this yet, it seems to be tricky/manufacturer specific, CMIIW. > Tried using "pjsua_set_snd_dev ();" > it returns "Unknown error". > How to retrieve all available playback or output devices? > Please see pjsua_enum_snd_devs(). Regards, nanang > Thanks. > > Calvin > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
CI
CalvIA IA
Fri, Oct 10, 2008 1:22 AM

Hi,
oh, i did the listing out of sound devices, refering to the sndinfo.c
sample.

selected a different playback device from the list using "pjsua_set_snd_dev
();"

yet the audio is still coming out from the rear speaker.

I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder how
they route it successfully to the ear speakers.

Thanks.

Regards,
Calvin

On Fri, Oct 10, 2008 at 12:43 AM, Nanang Izzuddin nanang@pjsip.org wrote:

Hi,

On Wed, Oct 8, 2008 at 6:39 PM, CalvIA IA calvia08@gmail.com wrote:

Hi,

For calls, how to change from loud speaker to normal ear speakers on HTC
devices with WM6?

Routing audio on WM has been discussed before, no real or general
solution for this yet, it seems to be tricky/manufacturer specific,
CMIIW.

Tried using "pjsua_set_snd_dev ();"
it returns "Unknown error".
How to retrieve all available playback or output devices?

Please see pjsua_enum_snd_devs().

Regards,
nanang

Hi, oh, i did the listing out of sound devices, refering to the sndinfo.c sample. selected a different playback device from the list using "pjsua_set_snd_dev ();" yet the audio is still coming out from the rear speaker. I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder how they route it successfully to the ear speakers. Thanks. Regards, Calvin On Fri, Oct 10, 2008 at 12:43 AM, Nanang Izzuddin <nanang@pjsip.org> wrote: > Hi, > > On Wed, Oct 8, 2008 at 6:39 PM, CalvIA IA <calvia08@gmail.com> wrote: > > Hi, > > > > For calls, how to change from loud speaker to normal ear speakers on HTC > > devices with WM6? > > > > Routing audio on WM has been discussed before, no real or general > solution for this yet, it seems to be tricky/manufacturer specific, > CMIIW. > > > Tried using "pjsua_set_snd_dev ();" > > it returns "Unknown error". > > How to retrieve all available playback or output devices? > > > > Please see pjsua_enum_snd_devs(). > > Regards, > nanang > > > > Thanks. > > > > Calvin > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
FP
Fabio Pietrosanti (naif)
Fri, Oct 10, 2008 9:33 AM

Probably a "bit" of reverse engineering "for compatibility purpose"
(that's legal) would be required on those products.

Fabio

CalvIA IA wrote:

Hi,

oh, i did the listing out of sound devices, refering to the sndinfo.c
sample.

selected a different playback device from the list using
"pjsua_set_snd_dev ();"

yet the audio is still coming out from the rear speaker.

I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I
wonder how they route it successfully to the ear speakers.

Probably a "bit" of reverse engineering "for compatibility purpose" (that's legal) would be required on those products. Fabio CalvIA IA wrote: > Hi, > > oh, i did the listing out of sound devices, refering to the sndinfo.c > sample. > > selected a different playback device from the list using > "pjsua_set_snd_dev ();" > > yet the audio is still coming out from the rear speaker. > > I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I > wonder how they route it successfully to the ear speakers.
NI
Nanang Izzuddin
Fri, Oct 10, 2008 3:24 PM

Hi,

Accidentally found this:
Programmatically Activating Speakerphone -
http://www.peterfoot.net/ProgrammaticallyActivatingSpeakerphone.aspx
Controlling the speakerphone -
http://www.teksoftco.com/articles/article%20006/speakerphone.htm
(from http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1594856&SiteID=1)

Regards,
nanang

On Fri, Oct 10, 2008 at 4:33 PM, Fabio Pietrosanti (naif)
lists@infosecurity.ch wrote:

Probably a "bit" of reverse engineering "for compatibility purpose" (that's
legal) would be required on those products.

Fabio

CalvIA IA wrote:

Hi,

oh, i did the listing out of sound devices, refering to the sndinfo.c
sample.

selected a different playback device from the list using
"pjsua_set_snd_dev ();"

yet the audio is still coming out from the rear speaker.
I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder
how they route it successfully to the ear speakers.

Hi, Accidentally found this: Programmatically Activating Speakerphone - http://www.peterfoot.net/ProgrammaticallyActivatingSpeakerphone.aspx Controlling the speakerphone - http://www.teksoftco.com/articles/article%20006/speakerphone.htm (from http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1594856&SiteID=1) Regards, nanang On Fri, Oct 10, 2008 at 4:33 PM, Fabio Pietrosanti (naif) <lists@infosecurity.ch> wrote: > Probably a "bit" of reverse engineering "for compatibility purpose" (that's > legal) would be required on those products. > > Fabio > > CalvIA IA wrote: >> >> Hi, >> >> oh, i did the listing out of sound devices, refering to the sndinfo.c >> sample. >> >> selected a different playback device from the list using >> "pjsua_set_snd_dev ();" >> >> yet the audio is still coming out from the rear speaker. >> I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder >> how they route it successfully to the ear speakers. > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
CI
CalvIA IA
Mon, Oct 13, 2008 3:51 AM

Tested. not working. It does turn on and off the speakerphone (can be noted
from the icon at taskbar area) on WM6, but audio still output from the rear
loudspeaker.

On Fri, Oct 10, 2008 at 11:24 PM, Nanang Izzuddin nanang@pjsip.org wrote:

Hi,

Accidentally found this:
Programmatically Activating Speakerphone -
http://www.peterfoot.net/ProgrammaticallyActivatingSpeakerphone.aspx
Controlling the speakerphone -
http://www.teksoftco.com/articles/article%20006/speakerphone.htm
(from
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1594856&SiteID=1)

Regards,
nanang

On Fri, Oct 10, 2008 at 4:33 PM, Fabio Pietrosanti (naif)
lists@infosecurity.ch wrote:

Probably a "bit" of reverse engineering "for compatibility purpose"

(that's

legal) would be required on those products.

Fabio

CalvIA IA wrote:

Hi,

oh, i did the listing out of sound devices, refering to the sndinfo.c
sample.

selected a different playback device from the list using
"pjsua_set_snd_dev ();"

yet the audio is still coming out from the rear speaker.
I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder
how they route it successfully to the ear speakers.

Tested. not working. It does turn on and off the speakerphone (can be noted from the icon at taskbar area) on WM6, but audio still output from the rear loudspeaker. On Fri, Oct 10, 2008 at 11:24 PM, Nanang Izzuddin <nanang@pjsip.org> wrote: > Hi, > > Accidentally found this: > Programmatically Activating Speakerphone - > http://www.peterfoot.net/ProgrammaticallyActivatingSpeakerphone.aspx > Controlling the speakerphone - > http://www.teksoftco.com/articles/article%20006/speakerphone.htm > (from > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1594856&SiteID=1) > > Regards, > nanang > > > On Fri, Oct 10, 2008 at 4:33 PM, Fabio Pietrosanti (naif) > <lists@infosecurity.ch> wrote: > > Probably a "bit" of reverse engineering "for compatibility purpose" > (that's > > legal) would be required on those products. > > > > Fabio > > > > CalvIA IA wrote: > >> > >> Hi, > >> > >> oh, i did the listing out of sound devices, refering to the sndinfo.c > >> sample. > >> > >> selected a different playback device from the list using > >> "pjsua_set_snd_dev ();" > >> > >> yet the audio is still coming out from the rear speaker. > >> I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder > >> how they route it successfully to the ear speakers. > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
CI
CalvIA IA
Mon, Oct 13, 2008 3:52 AM

Hi Fabio,
Can you elaborate on the reversed engineering done to route the audio output
to the ear speakers?

Thanks.

Calvin

On Fri, Oct 10, 2008 at 5:33 PM, Fabio Pietrosanti (naif)
lists@infosecurity.ch wrote:

Probably a "bit" of reverse engineering "for compatibility purpose" (that's
legal) would be required on those products.

Fabio

CalvIA IA wrote:

Hi,

oh, i did the listing out of sound devices, refering to the sndinfo.c
sample.

selected a different playback device from the list using
"pjsua_set_snd_dev ();"

yet the audio is still coming out from the rear speaker.
I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder
how they route it successfully to the ear speakers.

Hi Fabio, Can you elaborate on the reversed engineering done to route the audio output to the ear speakers? Thanks. Calvin On Fri, Oct 10, 2008 at 5:33 PM, Fabio Pietrosanti (naif) <lists@infosecurity.ch> wrote: > Probably a "bit" of reverse engineering "for compatibility purpose" (that's > legal) would be required on those products. > > Fabio > > CalvIA IA wrote: > >> Hi, >> >> oh, i did the listing out of sound devices, refering to the sndinfo.c >> sample. >> >> selected a different playback device from the list using >> "pjsua_set_snd_dev ();" >> >> yet the audio is still coming out from the rear speaker. >> I tested many other voip clients (Skype, Tivi, SJPhone) on WM, I wonder >> how they route it successfully to the ear speakers. >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
FP
Fabio Pietrosanti (naif)
Mon, Oct 13, 2008 7:35 AM

Simply there are several software out there that use the earpiece
instead of the loudspeaker.

How they do?

It's a matter of reverse engineering their application a bit to
understand exactly how they do, in terms of system call.

It should not be so complex imho, Windows Mobile it's a quite easy
platform to reverse engineer.

Fabio

CalvIA IA wrote:

Hi Fabio,

Can you elaborate on the reversed engineering done to route the audio
output to the ear speakers?

Thanks.

Calvin

On Fri, Oct 10, 2008 at 5:33 PM, Fabio Pietrosanti (naif)
lists@infosecurity.ch wrote:

 Probably a "bit" of reverse engineering "for compatibility
 purpose" (that's legal) would be required on those products.

 Fabio


 CalvIA IA wrote:

     Hi,

     oh, i did the listing out of sound devices, refering to the
     sndinfo.c sample.

     selected a different playback device from the list using
     "pjsua_set_snd_dev ();"

     yet the audio is still coming out from the rear speaker.  
     I tested many other voip clients (Skype, Tivi, SJPhone) on WM,
     I wonder how they route it successfully to the ear speakers.


 _______________________________________________
 Visit our blog: http://blog.pjsip.org

 pjsip mailing list
 pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
 http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Simply there are several software out there that use the earpiece instead of the loudspeaker. How they do? It's a matter of reverse engineering their application a bit to understand exactly how they do, in terms of system call. It should not be so complex imho, Windows Mobile it's a quite easy platform to reverse engineer. Fabio CalvIA IA wrote: > Hi Fabio, > > Can you elaborate on the reversed engineering done to route the audio > output to the ear speakers? > > Thanks. > > Calvin > > On Fri, Oct 10, 2008 at 5:33 PM, Fabio Pietrosanti (naif) > <lists@infosecurity.ch> wrote: > > Probably a "bit" of reverse engineering "for compatibility > purpose" (that's legal) would be required on those products. > > Fabio > > > CalvIA IA wrote: > > Hi, > > oh, i did the listing out of sound devices, refering to the > sndinfo.c sample. > > selected a different playback device from the list using > "pjsua_set_snd_dev ();" > > yet the audio is still coming out from the rear speaker. > I tested many other voip clients (Skype, Tivi, SJPhone) on WM, > I wonder how they route it successfully to the ear speakers. > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
CI
CalvIA IA
Mon, Oct 13, 2008 8:04 AM

Hi,
not many release their source codes though...

On Mon, Oct 13, 2008 at 3:35 PM, Fabio Pietrosanti (naif)
lists@infosecurity.ch wrote:

Simply there are several software out there that use the earpiece instead
of the loudspeaker.

How they do?

It's a matter of reverse engineering their application a bit to understand
exactly how they do, in terms of system call.

It should not be so complex imho, Windows Mobile it's a quite easy platform
to reverse engineer.

Fabio

CalvIA IA wrote:

Hi Fabio,

Can you elaborate on the reversed engineering done to route the audio
output to the ear speakers?

Thanks.

Calvin

On Fri, Oct 10, 2008 at 5:33 PM, Fabio Pietrosanti (naif)
lists@infosecurity.ch wrote:

Probably a "bit" of reverse engineering "for compatibility
purpose" (that's legal) would be required on those products.

Fabio


CalvIA IA wrote:

    Hi,

    oh, i did the listing out of sound devices, refering to the
    sndinfo.c sample.

    selected a different playback device from the list using
    "pjsua_set_snd_dev ();"

    yet the audio is still coming out from the rear speaker.          I

tested many other voip clients (Skype, Tivi, SJPhone) on WM,
I wonder how they route it successfully to the ear speakers.

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, not many release their source codes though... On Mon, Oct 13, 2008 at 3:35 PM, Fabio Pietrosanti (naif) <lists@infosecurity.ch> wrote: > Simply there are several software out there that use the earpiece instead > of the loudspeaker. > > How they do? > > It's a matter of reverse engineering their application a bit to understand > exactly how they do, in terms of system call. > > It should not be so complex imho, Windows Mobile it's a quite easy platform > to reverse engineer. > > Fabio > > CalvIA IA wrote: > >> Hi Fabio, >> >> Can you elaborate on the reversed engineering done to route the audio >> output to the ear speakers? >> >> Thanks. >> >> Calvin >> >> On Fri, Oct 10, 2008 at 5:33 PM, Fabio Pietrosanti (naif) >> <lists@infosecurity.ch> wrote: >> >> Probably a "bit" of reverse engineering "for compatibility >> purpose" (that's legal) would be required on those products. >> >> Fabio >> >> >> CalvIA IA wrote: >> >> Hi, >> >> oh, i did the listing out of sound devices, refering to the >> sndinfo.c sample. >> >> selected a different playback device from the list using >> "pjsua_set_snd_dev ();" >> >> yet the audio is still coming out from the rear speaker. I >> tested many other voip clients (Skype, Tivi, SJPhone) on WM, >> I wonder how they route it successfully to the ear speakers. >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >