如何播放声音频率和框架未找到的AudioUnit问题 [英] How to play a sound of paticular frequency and framework not found AudioUnit question

查看:145
本文介绍了如何播放声音频率和框架未找到的AudioUnit问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何播放特定频率的声音和框架未找到AudioUnit问题1.我想播放特定频率的声音. 谁能告诉我为此使用哪个功能.

How to play a sound of paticular frequency and framework not found AudioUnit question1. I want to play a sound of paticular frequency. Can anybody tell me which function should I use for this purpose.

2.我不能在AudioUnit Framworks中使用iPhone SDK. 编译时,出现以下错误.

2.I can not use the iPhone SDK in AudioUnit Framworks. Compile time, the following error.

Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0-arch i386-isysroot/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/Users/gl/桌面/BY/Apps/t5/build/Debug-iphonesimulator -F/Users/gl/Desktop/BY/Apps/t5/build/Debug-iphonesimulator-filelist/Users/gl/Desktop/BY/Apps/t5/build/t5. build/Debug-iphonesimulator/t5.build/Objects-normal/i386/t5.LinkFileList-mmacosx-version-min = 10.5框架Foundation-framework UIKit-framework CoreGraphics-framework AudioUnit-o/用户/gl/Desktop/BY/Apps/t5/build/Debug-iphonesimulator/t5.app/t5 ld:找不到框架AudioUnit collect2:ld返回1个退出状态

Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0-arch i386-isysroot / Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/Users/gl/Desktop / BY/Apps/t5/build/Debug-iphonesimulator -F/Users/gl/Desktop/BY/Apps/t5/build/Debug-iphonesimulator-filelist / Users/gl/Desktop/BY/Apps/t5/build/t5. build/Debug-iphonesimulator/t5.build/Objects-normal/i386/t5.LinkFileList-mmacosx-version-min = 10.5-framework Foundation-framework UIKit-framework CoreGraphics-framework AudioUnit-o / Users / gl / Desktop / BY / Apps/t5/build/Debug-iphonesimulator/t5.app/t5 ld: framework not found AudioUnit collect2: ld returned 1 exit status

请帮助我.

推荐答案

使用AudioToolBox代替AudioUnit,即使我遇到同样的问题.它通过使用audiotoolbox得以解决. 对于播放频率,请检查此代码 "/开发人员/示例/CoreAudio/SimpleSDK/DefaultOutputUnit" 和 http://atastypixel.com/blog/2008/11 /04/using-remoteio-audio-unit/

use AudioToolBox instead of AudioUnit even i was having same problem. it got solved by using audiotoolbox. For playing frequency check this code "/Developer/Examples/CoreAudio/SimpleSDK/DefaultOutputUnit" and http://atastypixel.com/blog/2008/11/04/using-remoteio-audio-unit/

m也在做同样的事情.希望对您有帮助.

m also doing the same thing. hope so it will help you.

这篇关于如何播放声音频率和框架未找到的AudioUnit问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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