播放频率在iPhone [英] playing frequencies on the iPhone
问题描述
有人可以帮助我在iPhone上使用的 AudioQueue
服务方面发挥一定的频率(例如,440赫兹)?我看过的文档,但我似乎无法弄清楚相当如何做到这一点。苹果的样本code也没有帮助我太多。
Can someone help me use the AudioQueue
services on the iPhone to play a certain frequency (say, 440 Hz)? I've looked at the documentation, but I can't seem to figure out quite how to do it. Apple's sample code also isn't helping me too much.
谢谢!
推荐答案
/开发/例子/ CoreAudio的/ SimpleSDK / DefaultOutputUnit
对如何在发挥口气样本一个给定的频率和采样率。
/Developer/Examples/CoreAudio/SimpleSDK/DefaultOutputUnit
has a sample of how to play a tone at a given frequency and sample rate.
我基本上复制了code(也利用的此博客条目),它与iPhone。
I basically copied the code (also using a bit from this blog entry) and it worked with basically no change on the iPhone.
这篇关于播放频率在iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!