在 iOS 9 更新之前,我的鼓应用程序运行良好。当快速播放声音时,现在会出现削波爆裂类型的噪音。在 IOS 9 之前一切都很好。不知道如何修复?使用我喜欢的 OBjectAL 希望有一个修复。谢谢!链接到 Jacob Cole 的应用程序 Handpan(Jacob Cole) https://appsto.re/us/CUbj8.i
问问题
46 次
1 回答
0
我发现的一件事是缓冲的样本会发出这种爆裂声。谢谢你的帮助
- (void)playD1 {
// [[OALSimpleAudio sharedInstance] playEffect:@"D1a.caf" ];
int randomSoundNumber = arc4random() % 3; //random number from 0 to 2
ALBuffer *buffer = self.D1Buffers[randomSoundNumber];
NSLog(@"random sound number = %i", randomSoundNumber);
self.D1Sources = [ALSource source];
[self.D1Sources stop];
[self.D1Sources play:buffer];
于 2016-02-04T01:20:13.027 回答