static int BASE_waveLength(int frameCount, int channels) { if (frameCount == 0 || channels == 0) return 0; return frameCount * channels; }