AVAudioPlayer Output to Speaker Problem

Posted by Max on Stack Overflow See other posts from Stack Overflow or by Max
Published on 2009-10-17T21:30:19Z Indexed on 2010/06/06 12:52 UTC
Read the original article Hit count: 532

Filed under:
|

After searching around for how to send AVAudioPlayer output to the iPhone's speaker, I found this:

http://stackoverflow.com/questions/1064846/iphone-audio-playback-force-through-internal-speaker

Despite setting the category correctly to AVAudioSessionCategoryPlayAndRecord, this solution doesn't seem to be working for me and won't even let the build compile, giving me this error:

"_AudioSessionSetProperty", referenced from:

... ...

ld: symbol(s) not found collect2: ld returned 1 exit status

Am I not including something? I'm importing AudioToolbox, AVFoundation, and CoreAudio.

My class implements AVAudioSessionDelegate, AVAudioRecorderDelegate, AVAudioPlayerDelegate, and UITextFieldDelegate.

Any help would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about avaudioplayer