相关疑难解决方法(0)

iPhone上的实时音高转换

我有一个儿童的iPhone应用程序正在编写,我需要能够使用Core Audio移动声音样本的音高.有没有人有任何示例代码,我可以看看这是完成的.应用程序商店中有很多音乐和游戏应用程序,所以我知道我不是第一个.但是,我找不到任何有关它的例子.

iphone audio core-audio pitch-tracking pitch

23
推荐指数
2
解决办法
2万
查看次数

如何完全删除和释放OpenAL声音文件的内存?

我有一个基于小型的iPhone应用程序.我需要为每个级别加载和释放声音文件.除了释放声音之外,我的openAL SoundManager一切正常.

首先,当我移除声音时,它似乎做了它应该做的事情 - 除去声音,除非我重新加载,否则我无法再次访问它.但是,当我用'仪器'测试我的应用程序dealloc时,它没有显示任何释放.它似乎没有释放内存.因此,当您从一个级别移动到另一个级别时,内存耗尽并且应用程序崩溃不会花费很长时间.

我在控制台中收到此错误:

程序接收信号:"0".警告:check_safe_call:无法恢复当前帧kill quit

这是我加载声音的方式 -

- (void)loadSoundWithKey:(NSString*)aSoundKey fileName:(NSString*)aFileName fileExt:(NSString*)aFileExt {
// Check to make sure that a sound with the same key does not already exist
NSNumber *numVal = [soundLibrary objectForKey:aSoundKey];
// If the key is found log it and finish
if(numVal != nil) {
    NSLog(@"WARNING - SoundManager: Sound key '%@' already exists.", aSoundKey);
    return;
}
    NSUInteger bufferID;
// Generate a buffer within OpenAL for this sound
alGenBuffers(1, &bufferID);
// Set up the variables which …
Run Code Online (Sandbox Code Playgroud)

iphone audio release openal

7
推荐指数
1
解决办法
6395
查看次数

标签 统计

audio ×2

iphone ×2

core-audio ×1

openal ×1

pitch ×1

pitch-tracking ×1

release ×1