void OnAudioFilterRead(float[] data, int channels) { Ruratae.Process(monoData); for (int frame = 0; frame < monoData.Length; ++frame) { for (int ch = 0; ch < channels; ++ch) { data[channels * frame + ch] = monoData[frame]; } } }
void OnAudioFilterRead(float[] data, int channels) { if (GameManager.editMode) { return; } // Process the next buffer block. Ruratae.Process(monoData); for (int frame = 0; frame < monoData.Length; ++frame) { for (int ch = 0; ch < channels; ++ch) { data[channels * frame + ch] = monoData[frame]; } } }