How to correctly read decoded PCM samples on iOS using AVAssetReader — currently incorrect decoding

后端 未结 3 1705
失恋的感觉
失恋的感觉 2020-12-24 11:34

I am currently working on an application as part of my Bachelor in Computer Science. The application will correlate data from the iPhone hardware (accelerometer, gps) and mu

3条回答
  •  猫巷女王i
    2020-12-24 11:49

    If I were you I would either use kAudioUnitSubType_AudioFilePlayer to play the file and access its samples with the units render callback.

    Or

    Use ExtAudioFileRef to extract the samples straight to a buffer.

提交回复
热议问题