Logged in as Guest   Sun, Oct. 21st, 11:57 AM.      
 
 
Web hazelware.luggle.com
 

Attention Manager Oddity
Tonight, I discovered that on the PalmOS, the following code does nothing:
        AttnDoSpecialEffects(kAttnFlagsSoundBit);
Now instinctively, I would have figured that it would play the alarm sound or something, but all I got was a whole lot of nothing.
At first I figured that I just had the system sound off, but even after I made sure that the system sound was on, it still did nothing. After some digging and a google search, I discovered that the kAttnFlagsSoundBit value doesn't actually do anything in this scenario. How strange! I didn't find it documented anywhere in the API docs or the Help files, but apparently, this is a known 'feature'.
To make things more obfuscated, if you use:
        AttnDoSpecialEffects(kAttnFlagsSoundBit | kAttnFlagsVibrateBit);
it will successfully vibrate. If kAttnFlagsSoundBit is a bogus value for this function, it should at least have the decency to error out in a big way if I pass invalid values to it! Anyway, I'm sure most people don't really care about this, but if you need a workaround, just use SndPlaySystemSound(sndAlarm) instead.
Submitted by bosshogg on Wednesday the 31st 1970f December 1969, at 04:00

 
Recent Entries:
I'm BACK!!!!!!
Code Monkey
Cool 3D Code Snippet From My Former Life
YouTube: The Revival of the Internet Time Killer
WhereMate Released
Palmasaurus Released As Freeware
VM-Plus Beta
Handspring Undocumented APIs
Posting Malaise
PhoneShield Released!!!

Archive:
October - 2007
August - 2007
July - 2007
June - 2007
May - 2007
April - 2007
December - 2006
November - 2006
September - 2006
August - 2006
July - 2006
March - 2006
February - 2006
January - 2006
December - 2005
November - 2005
October - 2005
September - 2005
August - 2005
July - 2005
June - 2005
May - 2005
April - 2005
February - 2005
January - 2005
December - 2004
November - 2004
October - 2004
September - 2004
August - 2004
July - 2004
June - 2004
May - 2004
April - 2004
March - 2004