Is there any API for changing the settings of the speaker/microhphone
in Phone Edition? There must exist an API for this purpose, or
is it all hardware depedent?

//Erik

Re: Audio API by Peter

Peter
Tue Jan 25 03:46:08 CST 2005

What settings do you want to change? The waveOut* APIs will allow you to set
the volume of the speaker.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Erik Mattsson" <erikmattsson_NO-SPAM_@home.se> wrote in message
news:eXEFzYrAFHA.1408@TK2MSFTNGP10.phx.gbl...
> Is there any API for changing the settings of the speaker/microhphone
> in Phone Edition? There must exist an API for this purpose, or
> is it all hardware depedent?
>
> //Erik



Re: Audio API by Erik

Erik
Tue Jan 25 03:55:15 CST 2005

I would like to change the telephone's speaker and microphone. Or
at least the normal mic and speaker so I can mute a call both in and out
in my code. Im building a voice call app/dll.

It seems that the mixerOpen* API, might do that. But Im having real
problems compiling code that uses some sample code I found at the
code project. Is the mixerOpen() API available on the PPC2003?

If not, what should I use?

Regards
//Erik

Peter Foot [MVP] wrote:
> What settings do you want to change? The waveOut* APIs will allow you to set
> the volume of the speaker.
>
> Peter
>

Re: Audio API by Peter

Peter
Tue Jan 25 06:10:31 CST 2005

Most devices will return 0 for the number of mixers. For phone specific
functionality the TAPI methods (line* )contain one which will mute/unmute
the line (lineGetMuteState / lineSetMuteState). Not sure how you can affect
the volume but there must be a way since the system lets you set this volume
independantly of the regular audio output.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Erik Mattsson" <erikmattsson_NO-SPAM_@home.se> wrote in message
news:41F61783.5020505@home.se...
>I would like to change the telephone's speaker and microphone. Or
> at least the normal mic and speaker so I can mute a call both in and out
> in my code. Im building a voice call app/dll.
>
> It seems that the mixerOpen* API, might do that. But Im having real
> problems compiling code that uses some sample code I found at the
> code project. Is the mixerOpen() API available on the PPC2003?
>
> If not, what should I use?
>
> Regards
> //Erik
>
> Peter Foot [MVP] wrote:
>> What settings do you want to change? The waveOut* APIs will allow you to
>> set the volume of the speaker.
>>
>> Peter
>>



Re: Audio API by Erik

Erik
Tue Jan 25 06:25:40 CST 2005

That is what I found as well, when i tried the GetDevNums() method, it
returned 0 devices. Will this happen on all PPC devices, or why do I get
0 mixers?

So there must be another way, and for now, Im looking into the TAPI to
see if I can use phoneSetVolume() method to do my work. I want to set
the volume besides muting it. Perhaps those methods will help me more.
The only problem I see now is that "application must be the owner of the
phone", and this might be a problem if someone else is using it. (Ive
actually shutdown the Phone App, so it shouldnt interupt my results).


regards
//Erik

Peter Foot [MVP] wrote:
> Most devices will return 0 for the number of mixers. For phone specific
> functionality the TAPI methods (line* )contain one which will mute/unmute
> the line (lineGetMuteState / lineSetMuteState). Not sure how you can affect
> the volume but there must be a way since the system lets you set this volume
> independantly of the regular audio output.
>
> Peter
>