问题纪录

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);


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值