Cannot play a recorded sound on device.
Posted
by B_
on Stack Overflow
See other posts from Stack Overflow
or by B_
Published on 2010-05-02T02:39:00Z
Indexed on
2010/05/02
2:47 UTC
Read the original article
Hit count: 273
I'm using the exact code from the iPhone Application Programming Guide Multimedia Support to use AVAudioRecorder to record a file to the disk and then AVAudioPlayer to load and play that file.
This is working fine in the simulator but is not working on the device. The file gets loaded (we can see the NSTimeInterval) but does not play (play returns false).
After it didn't work with the sample code from the website, we tried changing to a bunch of different codecs with no success. And of course, the sound is on.
Thanks a bunch.
© Stack Overflow or respective owner