我已经加入了iPhone的笃声音我自己的自定义键盘是这样的:如何让iPhone OS 3.1屏蔽键盘声音?
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);
在iPhone OS 3.1,然而,键盘声笃一直闷闷的,例如比其他声音更沉默,比3.0版更加沉默。我的方法的声音仍然很响,并且音量最大。我怎样才能获得与iPhone默认键盘相同的音量?
顺便说一下,在Twitterrific中的Tock声音是合适的。
干杯
MrMage
你提供了一种方法来关闭它,对吗?我认识的大多数人绝对讨厌那种声音。 – AlBlue 2009-10-05 07:14:57
当然,我做到了。 – MrMage 2009-10-05 08:13:55
刚刚为它添加了一个赏金。我想有一个完整的解决方案,这感觉(如声音)完全像真实的东西。 – MrMage 2009-10-13 21:36:45