iOS Code to Convert m4a to WAV

后端 未结 6 661
小鲜肉
小鲜肉 2020-12-14 13:48

Does anyone have any code snippets that show how to convert an M4a file to WAV? I know there are libraries that convert the other way around.

Thanks.

6条回答
  •  無奈伤痛
    2020-12-14 14:21

    AVAssetReader and AVAssetWriter in the AVFoundation framework can be used read AAC files and write that data as WAV/RIFF files on iOS devices. There's sample code on the Apple developer site. It's a bit more than a short snippet.

提交回复
热议问题