开发者

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

开发者 https://www.devze.com 2022-12-19 22:50 出处:网络
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百科

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

精彩评论

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

关注公众号