Please help:

I want to play a system alarm
SndPlaySystemSound(sndStartUp); (or similar) when an mp3 fails to play as an alert


According to the reference, the volume for this is controlled by prefSysSoundVolume
this is bourne out by setting the system sound pref in the preference panel in the 650 - at volume 4 it is 0x6041 when turned off os is 0. (Why is this not sndMaxAmp == 64)


When I change the system sound preference - the following happens:
-the preference does change
-the value shown in the preference panel does change
-the system sound still plays at the previously set level.

It seems that the 650 is using two stores for this preference - the one that powers the panel, and another that actually does the work. Can anyone point me to the other preference?

Thanks,

Rob

here is my code

        UInt32  systemVolume=PrefGetPreference(prefSysSoundVolume);
        volatile UInt32 systemVolume2;

        PrefSetPreference(prefSysSoundVolume,0x6041);
        systemVolume2=PrefGetPreference(prefSysSoundVolume);

        SndPlaySystemSound(sndStartUp);
        //PrefSetPreference(prefAlarmSoundVolume,systemVolume);

I have tried using sndAlarm and prefAlarmSoundVolume with the same result.

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

Reply via email to