Hello, I was wondering if someone could explain something for me. I am
using SDK 3.5 and trying to turn system sounds on for the duration of my
application. I am using the following to reach that end:
----------------------------------------------------------------
//Global
Boolean Soundpref;

 static void LaunchScreenFormInit(FormPtr form)
     {
     if( PrefGetPreference(prefSysSoundLevelV20) == slOff )
         {
         PrefSetPreference(prefSysSoundLevelV20, slOn);     //Turn sound
on if it is off.
         PrefSetPreference(prefSysSoundVolume, 64);     //Turn volume
up. May not be needed.
         Soundpref = true;
         }
     }

     static void LaunchScreenFormDeinit(FormPtr form)
     {
     if(Soundpref == true)
         PrefSetPreference(prefSysSoundLevelV20, slOff);  //turn sound
back off if it was on.
     }
----------------------------------------------------------------------

What happens is that the sound never gets enabled. However, the prefs
panel shows that the sound DOES get set to High, you just can't hear it.

Would someone be so kind as to help me with this? I am missing something
fundamental here I think.

Thanks in advance,
Steve Mott


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

Reply via email to