AcoustID.ChromaContext.Finish C# (CSharp) Method

Finish() public method

Process any remaining buffered audio data and calculate the fingerprint.
public Finish ( ) : void
return void
        public void Finish()
        {
            fingerprint = fingerprinter.Finish();
        }

Usage Example

Ejemplo n.º 1
0
        private void ProcessFile(string file)
        {
            if (File.Exists(file))
            {
                if (decoder.Ready)
                {
                    //btnOpen.Enabled = false;
                    btnFingerPrint.Enabled = false;
                    btnRequest.Enabled = false;

                    Task.Factory.StartNew(() =>
                    {
                        Stopwatch stopwatch = new Stopwatch();
                        stopwatch.Start();

                        ChromaContext context = new ChromaContext();
                        context.Start(decoder.SampleRate, decoder.Channels);
                        decoder.Decode(context.Consumer, 120);
                        context.Finish();

                        stopwatch.Stop();

                        ProcessFileCallback(context.GetFingerprint(), stopwatch.ElapsedMilliseconds);
                    });
                }
            }
        }
All Usage Examples Of AcoustID.ChromaContext::Finish