wo80 / AcoustID.NET

AcoustID fingerprinter and webservice access in .NET
39 stars 17 forks source link

Using AcoustID.NET #7

Closed shanecody32 closed 2 years ago

shanecody32 commented 2 years ago

I am trying to use AcoustID.NET for a project but the examples that was provided to a different issue does not work.

When I try to use the following, context does not have a Consumer property:

var decoder = new NAudioDecoder(filename);
var context = new ChromaContext();

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

var fp = context.GetFingerprint();
wo80 commented 2 years ago

Try decoder.Decode(context, 120).

wo80 commented 2 years ago

Feel free to re-open if you're still having issues.