106
Audio / Re: Attaching SoundBuffers
« on: February 17, 2017, 07:59:34 pm »
Well here's something a bit more to learn about arrays: "buffers" and "arrays" are often (not always) the same thing.
In this case, getSamples() is giving you a pointer to the buffer (hence the class name) containing the sound data. There are getSampleCount() datums in the buffer.
You're going to want to read about pointers to understand more in depth about what's going on here.
In this case, getSamples() is giving you a pointer to the buffer (hence the class name) containing the sound data. There are getSampleCount() datums in the buffer.
You're going to want to read about pointers to understand more in depth about what's going on here.