Hi Hynek, Somebody correct me if I am wrong but I think that the Snd* API is for streaming sound or MIDI sound, and that the system alarm volume (as well as the Game and System volume) is to be set using the system preferences.
Try this: Get the system Prefs using PrefGetPrefernces, change the defaultAlarmSoundVolume member of the structure to sndMaxAmp. Set using PrefSetPrefences I am not 100% sure if this will correct your Treo specific issue (may be something deeper having to deal with the device?) but it will set the Alarm volume on the T|X. Later Daze, /*PhreakOnALeash*/ On 5/30/07, Hynek Sladky <[EMAIL PROTECTED]> wrote: > > There is some illogical thing with volumes on Treo650: there is no > volume setting for alarms in preferences and it seems that alarms take > system volume setting: e.g. Tasks: if system volume is off no sound is > produced. > I am writing application where can I get over this: > > SndGetDefaultVolume (NULL, &old_vol, NULL); > new_vol = sndMaxAmp; > SndSetDefaultVolume (NULL, &new_vol, NULL); > SndPlaySystemSound(sndAlarm); > SndSetDefaultVolume (NULL, &old_vol, NULL); > > Unfortunately, system volume stays at level higher than zero/off. But in > preferences panel it shows system volume OFF! > Is there any way how to correctly get and back restore volume settings > for Treo650? > > Thanks, > Hynek Sladky > > -- > For information on using the ACCESS Developer Forums, or to unsubscribe, > please see http://www.access-company.com/developers/forums/ > -- /*PhreakOnALeash*/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
