Im my app I play .mp3 files with the AVFoundation Framework (AVAudioPlayer), but this framework only exists in 4.0 or later; what can I use to play an mp3 before 4.0?
I'm looking at Apple's documentation for AVAudioPlayer and it says at the top of that page:
Availability Available in iOS 2.2 and later.
I looked in one of my older (pre iOS 4) projects to see how I used to play sound files. It was a combination of the AudioToolbox framework and some files from Apple's older SpeakHere sample code .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.