Hi there,
I have added the iPhone's Tock sound to my own custom keyboard like this:
NSString *path = [[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"];
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID);
AudioServicesPlaySystemSound(soundID);
// we don't dispose of the sound to keep the sound in the cache for the next time
//AudioServicesDisposeSystemSoundID(soundID);
In iPhone OS 3.1, however, the keyboard Tock sound has been muffled, e.g. is much more silent than other sounds and than it was in 3.0. My method's sound is still very loud and at the maximum volume. How could I get the same volume as the iPhone's default keyboard?
By the way, the Tock sound in Twitterrific is muffled appropriately.
Cheers
MrMage