예제 #1
0
 private static void ReadFromTestProvider(int bytesToRead, int bufferSize)
 {
     TestWaveProvider source = new TestWaveProvider(44100, 1);
     AutoTuneWaveProvider autoTune = new AutoTuneWaveProvider(source);
     byte[] buffer = new byte[bufferSize];
     int bytesRead = 0;
     while (bytesRead < bytesToRead)
     {
         bytesRead += autoTune.Read(buffer, 0, buffer.Length);
     }
 }
예제 #2
0
        private static void ReadFromTestProvider(int bytesToRead, int bufferSize)
        {
            TestWaveProvider     source   = new TestWaveProvider(44100, 1);
            AutoTuneWaveProvider autoTune = new AutoTuneWaveProvider(source);

            byte[] buffer    = new byte[bufferSize];
            int    bytesRead = 0;

            while (bytesRead < bytesToRead)
            {
                bytesRead += autoTune.Read(buffer, 0, buffer.Length);
            }
        }