我正在使用此方法在我的应用程序中播放mp3声音:
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
AudioServicesPlaySystemSound(soundID);它可以播放iPhone4和iPod 4中的mp3声音,但在我的iPad中不能播放。
发布于 2012-01-31 17:11:33
尝试将MP3转换为CAFF:
afconvert -f caff -d LEI16 file.mp3 file.caf此音频文件将在所有iOS设备上播放。
https://stackoverflow.com/questions/9076904
复制相似问题