> Thanks Dmitry.
>
[quoted text clipped - 28 lines]
>
> - Show quoted text -
Hi Dmitry,
Oooo, i've got it working dynamically, thanks !! Since you seems to be more
expert than me on that plate :), here are two more questions. Thanks for your
time.
1) RIL_Initialize: the first parameters is the index of the RIL port to use.
On the phone i'm testing it's working only with index 1, but maybe on other
device could be another index value, do you know if there's a way to get that
index more officially at runtime or 1 should always be working ?
2) RIL_SetAudioDevices: still on my WM testing device the member dwTxDevice
affects audio device like this:
0 : external speaker
1..4 : earpiece
5 .. N : out of bound
do you know if there is a way to know at runtime which hardware TxDevice is
available at a specified index ? Maybe on some device 0 would correspond to
earpiece..
Cheers,
Cheelo
> Hello Cheelo,
>
[quoted text clipped - 42 lines]
> >
> > - Show quoted text -
Dmitry - 30 Sep 2008 14:31 GMT
Hi Cheelo,
1) I am not aware much of the first argument, however have found
this:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3014032&SiteID=1
2) yes, i have the same experience, dwTxDevice affects audio device
only;
Indexes of devices can be found in ril.h:
#define RIL_AUDIO_NONE
(0x00000000) // No audio devices
#define RIL_AUDIO_HANDSET (0x00000001) //
Handset
#define RIL_AUDIO_SPEAKERPHONE (0x00000002) //
Speakerphone
#define RIL_AUDIO_HEADSET (0x00000003) //
Headset
#define RIL_AUDIO_CARKIT
(0x00000004) // Carkit
however MSDN says only 0 and 1 are supported values:
http://msdn.microsoft.com/en-us/library/aa919626.aspx
I used these values only, and confirm RIL_SetAudioDevices works as
expected;
To enable speakerphone RIL_AUDIO_NONE should be passed,
and to enable earpiece - RIL_AUDIO_HANDSET;
There is still way to know about hardware, with use of
RIL_GetAudioDevices():
http://msdn.microsoft.com/en-us/library/aa919176.aspx
However i cannot say if it fails or works properly;
Best regards,
Dmitry
> Hi Dmitry,
>
[quoted text clipped - 68 lines]
>
> - Show quoted text -
Cheelo - 02 Oct 2008 18:22 GMT
GREAT THANKS TO YOU DMITRY!
Cheelo
> Hi Cheelo,
>
[quoted text clipped - 105 lines]
> >
> > - Show quoted text -
dev11 - 06 Oct 2008 17:07 GMT
Hi, Does this just work for one particular device or did you find it works
on a range of devices. We'd interested to know which devices you've actually
managed
to get this to work. Also does this allow say a wav file played with the
Playsound api to be
routed through the earpiece
> GREAT THANKS TO YOU DMITRY!
>
[quoted text clipped - 127 lines]
>> >
>> > - Show quoted text -