AcoustID.ChromaContext.GetFingerprint C# (CSharp) Méthode

GetFingerprint() public méthode

Return the calculated fingerprint as a compressed string.
public GetFingerprint ( ) : string
Résultat string
        public string GetFingerprint()
        {
            FingerprintCompressor compressor = new FingerprintCompressor();
            return Base64.Encode(compressor.Compress(this.fingerprint, algorithm));
        }

Usage Example

Exemple #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::GetFingerprint