Recording to AAC from RemoteIO: data is getting written but file unplayable

前端 未结 3 542
醉梦人生
醉梦人生 2020-11-30 03:37

I have been trying to record from a RemoteIO unit directly to AAC in a renderCallback in iOS 5 on an iPad 2. I have seen conflicting info saying it is not possible & tha

3条回答
  •  星月不相逢
    2020-11-30 04:06

    Did you write the magic cookie required at the start of an mpg 4 audio file?

    You also need to do at least the first file write outside of the audio unit render callback.

    Added:

    Did you flush and close the audio file properly at the end? (outside of the AU callback)

提交回复
热议问题