John, > I can't see anything in the documentation that > suggests that setting the > sound's frequency to 0 Hz is a supported use of the > API or causes > defined results. Certainly such a sound is fairly > inaudible :-), so it > wouldn't be too surprising if it produced undefined > results, e.g., > crashes (particularly this one), on some > implementations of the OS.
I would think that making an API that would crash if a zero was used for a non-pointer would be bad. I'm just thinking that this is a small bug in DR8 since it did not happen in DR7 or DR6. > I've been unable to find a reference to this bug > avoidance workaround > here or on trg-forum. If the particular undefined > result with the > implementation on a HandEra 330 happens to be a good > one, namely > avoiding this bug, but other undefined results are > bad ones, maybe you > should be careful only to do this on a HandEra 330. > :-) I'll wait for the final OS 5 to come out before I code for a specific device. I still believe that the bug will go away before golden master. I also read that Aaron Ardiri is having the divide by zero error with his sound on one of his programs so who know what the problem. > I don't know anything about this bug you're trying > to avoid, but I > wonder if setting param3 (amplitude) to 0 instead > would work around it > too, but with more expectation that you were > invoking the API in a > defined supported way. I noticed this bug on my "McChords" program that plays the individual notes in a chord. I noticed that on the HandEra the first note played was bad. I fixed it by doing the above. Mike __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
