Stefan Mohr wrote:
Hi guys,

Trying to get my head into the Treo space and haven’t found much in the way of a dedicated reference manual.. Is there anything beyond the Palm Developer Guide?

Right now I’m specifically trying to detect a couple of states on the device:

How can I determine if the ringer switch is set to off (eg. to have my alarm event vibrate instead of chime)?

This is how we detect the ringer switch... should work on Treo 600/650/680/700p. Will not work on non-treo devices so you will have to check the device type before calling this code.

                //Set silent mode if running on treo
                uint32_t ringSwitch;
                HsAttrGet (hsAttrRingSwitch, 0 ,&ringSwitch);

                if (hsAttrRingSwitchMute == ringSwitch)




How can I detect if an earpiece is inserted into the device? I’m presently using SndPlaySystemSound.. Perhaps there’s a better call I can use that will send the audio to the earpiece instead of the main speaker automatically? We found a Treo 650 was only sending audio to the main speaker with that call.

sorry, cann't help on this one.


Any pointers are greatly appreciated – I’m totally new to the Treo space.

Thanks!
Stefan


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to