Am going through a video lecture that (most excellent forum user!) Xenakios pointed me to, but also the tutorial on Looping Audio with the Audio SampleBufferClass also still assumes use of the deprecated class, so to better understand, I have some questions:
Is there any documentation on why AudioSampleBuffer was deprecated?
Can you do everything you could do with AudioSampleBuffer in AudioBuffer (in exactly the same way?)
Why does AudioBuffer take a template type? I just got lucky and assumed <float> but what else would you want to put in your AudioBuffer???
The AudioSampleBuffer is in fact just an AudioBuffer<float>. Its name was given before the class was templated and kept for backward compatibility, afaik.
It’s not deprecated, just a different name of the same thing
It doesn’t make a difference whether you use AudioBuffer<float> or AudioSampleBuffer. They are exactly the same. But using AudioBuffer in method signatures and such can offer more flexibility if your code also needs to be able to deal with AudioBuffer<double>.
For example an audio channel routing thing I did has a method like :