tags:

views:

535

answers:

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.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/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

Please help me.

A: 

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 also doing the same thing. hope so it will help you.

amy