BASE_waveLength static method
Computes the total number of samples for a wave with the given
frameCount and channels, i.e. frameCount * channels.
Returns 0 if either argument is 0.
Implementation
static int BASE_waveLength(int frameCount, int channels) {
if (frameCount == 0 || channels == 0) return 0;
return frameCount * channels;
}