This sketch is an example of how to use the size method of an AudioBuffer to get the
size of one of an AudioSource's sample buffers. The classes in Minim that extend AudioSource
and therefore inherit the left, right, and mix buffers of that class, are
AudioInput, AudioOutput, AudioSample, and AudioPlayer.
Not coincidentally, these are also all of the classes in Minim that are Recordable.
The value returned by size is the number of samples stored in the buffer. It will always be
equal to the bufferSize() of the Recordable you are working with. It is often a value
that you specify when you create the Recordable such as with loadFile or getLineIn.
Source code: size
Built with Processing