loadSamples

Loads the samples of the wave into a float array, which can be used for audio processing or analysis. The size of the returned float array will be equal to the frame count of the wave multiplied by the number of channels in the wave.

After calling this function, the samples of the wave will be loaded into a float array, where each sample is represented as a float value between -1.0 and 1.0. The order of the samples in the array will be interleaved by channel, meaning that for a stereo wave, the first sample will be for the left channel, the second sample will be for the right channel, and so on.

Return

A float array containing the samples of the wave, where each sample is a float value between -1.0 and 1.0, and the order of the samples is interleaved by channel.