void find(string str) { Kornea.Audio.AudioCore.Config.LoadConfigs(); Config.LoadPlugins(); decoder = new BassDecoder(); if (!String.IsNullOrEmpty(str) && File.Exists(str)) { decoder.Load(str); int bits = decoder.SourceBitDepth; int channels = decoder.SourceChannels; if (decoder.Ready) { Console.WriteLine(decoder.Duration.ToString()); dur = decoder.Duration; } else { } if (String.IsNullOrEmpty(Kornea.Audio.AcousticID.Configuration.ApiKey)) { // TODO: display a prompt for api key. Kornea.Audio.AcousticID.Configuration.ApiKey = "8XaBELgH"; } ProcessFile(str); } else { Console.WriteLine("Problem with the path entered."); } }