How many audio data buffer formats?

Do any of the audio DSP experts on here know how many different raw audio buffer formats there are, or at least the most common ones, used outside the safe world of VST plugins? Interleaving, stereo/mono/surround/unlimited multi-channel, 2D arrays, etc. I’m considering raw audio right now, if it arrives compressed I can hopefully deal with the conversion ok.

The motivation is to build an audio api which makes extensive use of AudioSampleBuffer, but needs to be compatible with all formats of audio data thrown at it. Ideally I’m hoping to use templates rather than conversion to adjust sample loops etc, but this may depend on how many formats I have to cater for…


You’ll probably want to look at the AudioData classes, which provides templates that can convert between pretty much anything.

wow mind blown, thanks! :smiley: