iOS audio manipulation - play local .caf file backwards

后端 未结 5 1768
遇见更好的自我
遇见更好的自我 2021-01-14 12:55

I\'m wanting to load a local .caf audio file and reverse the audio (play it backwards). I\'ve gathered that I basically need to flip an array of buffer data from posts like

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 13:08

    I think this sample code could help you.

    Mixer Host Sample Code

    It will load two caf files from the bundle and play it. It contains a function call readAudioFilesIntoMemory which is loading a caf file to a data array as you said.

    The whole program is an example of core audio, I hope it can help you :)

提交回复
热议问题