iPhone上的OpenAL音调生成
因此,我一直在寻找一种使用OpenAL在iPhone上产生可变音的方法,问题是Apple弃用了OpenAL的ALUT部分,该部分具有alutCreateBufferWaveform对此非常适合.我想知道是否有人知道如何使用iPhone SDK上的OpenAL制作音调生成器.我需要的是能够不断重复产生特定频率的能力.
So I have been looking around for some time now on a way to produce a variable tone on the iPhone using OpenAL, the issue being the Apple has deprecated the ALUT part of OpenAL that has the alutCreateBufferWaveform that would be perfect for this. I was wondering if anyone had any idea how to make a tone generator using OpenAL on the iPhone SDK. All I need is the ability to produce a certain frequency tone consistantly over and over again.
这是不得已的方法,如果听起来有点愚蠢,请对不起.
This is a last resort so sorry if it sounds kind of stupid.
这并非您真正想要的,但是它可以产生类似的效果.
This isn't exactly what you are looking for, but it can create a similar effect.
我使用了本教程
http://benbritten.com/2008/11 /06/在iPhone上打开声音/
创建一个可以播放不同级别的预录声音的引擎.因此,即使我必须播放现有* .caf文件中的声音,我也可以调制音调并控制循环,以便产生所需的任何频率,长度或音量.
to create an engine that could play a prerecorded sound at different levels. So even though I have to play the sound from an existing *.caf file, I can modulate the pitch and control looping so it produces any frequency, length, or volume I'm looking for.