大佬教程收集整理的这篇文章主要介绍了ios – 试图找出Core Audio的NBandEQ,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我确实意识到,毕竟我弄乱了所有愚蠢的设置,因为它在我进入那些设置之前开始抱怨.它已经给出了乐队数量和错误.
我发布这个问题,看看是否有更多经验丰富的程序员可以在我的代码中看到一些让我搞砸的事情并向我指出.我意识到并不是很多人冒险进入核心音频而不是NBandEQ,但也许我搞砸了一些基本的C所以请看看.我会非常感激的.我很沮丧.同样在发布此代码(即使它是丑陋的测试代码)也许我可以帮助落后的其他人.我知道我希望至少有一段代码可以让我看一下与NBandEQ相关的代码
在此先感谢您的帮助!
//GetTing max bands for this device??? UInt32 maxNumOfBands; UInt32 propSize = sizeof(maxNumOfBands); AudioUnitGetProperty([_equilizer audioUnit],kAUNBandEQProperty_MaxnumberOfBands,kAudioUnitScope_Output,&maxNumOfBands,&propSizE); NSLog(@"THIS IS THE MAX numbER OF BANDS?---%u",(unsigned int)R_789_11845@axNumOfBands); UInt32 noBands = [eqFrequencies count]; // Set the number of bands first NSLog(@"numberOfBands atempted:%i with result:%ld",(unsigned int)noBands,AudioUnitSetProperty(_equilizer.audioUnit,kAUNBandEQProperty_numberOfBands,kAudioUnitScope_Global,&noBands,sizeof(noBands))); // Set the frequencies for (NSUInteger i=0; i<noBands; i++) { NSLog(@"Set Frequency for band:%i with result:%ld",i,AudioUnitSetParameter([_equilizer audioUnit],kAUNBandEQParam_Frequency+i,(AudioUnitParametervalue)[[eqFrequencies objectATindex:i] floatValue],0)); } //set bandwidth for (NSUInteger i=0; i<noBands; i++) { NSLog(@"Set bandwidth for band:%i with result:%ld",kAUNBandEQParam_Bandwidth+i,0.05,//of octive 0)); } // Set the bypass to off "0" for (NSUInteger i=0; i<noBands; i++) { NSLog(@"Set Bypass for band:%i with result:%ld",kAUNBandEQParam_BypassBand+i,//off 0)); }
}
kAUNBandEQProperty_MaxnumberOfBands在Sim,iPhone 5和ReTina Ipad上产生了16个.
以上是大佬教程为你收集整理的ios – 试图找出Core Audio的NBandEQ全部内容,希望文章能够帮你解决ios – 试图找出Core Audio的NBandEQ所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。