播放频率在iPhone [英] playing frequencies on the iPhone

查看:166
本文介绍了播放频率在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆