Decode encoded audio buffer to PCM format

时间:2016-10-20 13:20:21

标签: ios audio swift3 avaudioplayer pcm

I'm new to iOS and Swift.

I would like to decode some encoded audio data (MP3, AAC...) to obtain an AVAudioPCMBuffer.

I wanted to do so through the AVAudioBuffer parent class, but it seems to be an abstraction layer to serve only the AVAudioPCMBuffer class.

The final result should be similar to the Web Audio API's decodeAudioData function

Is there a class/method to do so directly? Otherwise, what is the easiest way?

Thanks!

0 个答案:

没有答案