AcoustID.Chromaprint.SilenceRemover.Flush C# (CSharp) Method

Flush() public method

public Flush ( ) : void
return void
        public void Flush()
        {
        }
    }

Usage Example

Esempio n. 1
0
        public void TestPassThrough()
        {
            short[] samples = { 1000, 2000, 3000, 4000, 5000, 6000 };
            short[] data = (short[])(samples.Clone());

            AudioBuffer buffer = new AudioBuffer();
            SilenceRemover processor = new SilenceRemover(buffer);
            processor.Reset(44100, 1);
            processor.Consume(data, data.Length);
            processor.Flush();

            Assert.AreEqual(data.Length, buffer.data.Length);
            for (int i = 0; i < data.Length; i++)
            {
                Assert.AreEqual(data[i], buffer.data[i]); // << "Signals differ at index " << i;
            }
        }
All Usage Examples Of AcoustID.Chromaprint.SilenceRemover::Flush