How to play an instance of AVAudioBuffer?

24 Views Asked by At

On IOS, if you have an instance of AVAudioBuffer, how do you play it?

Note that I am NOT asking how to play an instance of AVAudioPCMBuffer.

There is a an Apple API that I'm using that returns/creates an AVAudioBuffer.

I have considered AVAudioEngine and AVAudioPlayerNode, but they only accept AVAudioPCMBuffer.

I have considered the higher level AVAudioPlayer, but it accepts "Data."

I find it very odd that the higher level API accepts the lowest level data format possible. How is it even supposed to know what the audio format is if it's constructed with pure data?

Anyways, to re-iterate, how do you play an AVAudioBuffer? If you can't then why do they exist?

0

There are 0 best solutions below

Related Questions in AVAUDIOBUFFER