Esempio n. 1
0
 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];
         }
     }
 }
Esempio n. 2
0
 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];
         }
     }
 }