开发者

AVAudioPlayer initialization error 1685348671. How to check whether file is valid?

I am using AVAudioPlayer to play some ima4 files. The initialization of the player keeps failing with error code 1685348671 (dta) which according to the documentation means开发者_JS百科

The file is malformed, not a valid instance of an audio file of its type, or not recognized as an audio file. Available in iPhone OS 2.0 and later.

What I don't understand is how the files are invalid or malformed when I can play them with QuickTime? Can the file still be malformed? How can I check whether an ima4 file is valid or not?

Thanks.


I'm having no probs playing ima4 files (in .aif) with AVAudioPlayer.

Maybe post some code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜