问题纪录

问题纪录,第1张

概述1、使用remoteio,如采样率不设置位44100,在4s上有可能会初始化失败(touch无此问题) 2、使用extaudiofileconvertutil格式转换,转换为aac时,文件dispose会无响应。程序卡死 The encoding works flawlessly on ipad 1 and iphone 3gs/4 for both ios 4 and 5. However, f

1、使用remoteio,如采样率不设置位44100,在4s上有可能会初始化失败(touch无此问题)

2、使用extaudiofileconvertutil格式转换,转换为aac时,文件dispose会无响应。程序卡死

The enCoding works flawlessly on ipad 1 and iphone 3gs/4 for both ios 4 and 5. However,for dual-core devices (iphone 4s,ipad 2) the third call to ExtAudiofileWrite crashes the enCoding thread with no stack trace and no error code.


问题可能的答案:http://stackoverflow.com/questions/8719865/extaudiofilewrite-to-m4a-aac-failing-on-dual-core-devices-ipad-2-iphone-4s

After much frustration and no help from Apple,my co-worker figured out the problem. Apparently on the newer iOS devices (iPad 2 and iPhone 4S),44.1 kHz is not a valID sample rate for AAC enCoding,at least using External Audio file Services. 48 kHz works just fine. I've filed this to Apple as a BUG,hopefully they will take care of it


I had a very similar problem where I was attempting to use Extended Audio file Services in order to stream PCM sound into an m4a file on an iPad 2. Everything appeared to work except that every call to ExtAudiofileWrite returned the error code -66567 (kExtAudiofileError_MaxPacketSizeUnkNown). The fix I eventually found was to set the "Codec Manufacturer" to software instead of harDWare. So place

UInt32 codecManf = kAppleSoftwareAudioCodecManufacturer;ExtAudiofileSetProperty(fileToWrite,kExtAudiofileProperty_CodecManufacturer,sizeof(UInt32),&codecManf);
总结

以上是内存溢出为你收集整理的问题纪录全部内容,希望文章能够帮你解决问题纪录所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1089907.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存