TODO: Update summary.
상속: IAudioConsumer
예제 #1
0
        public ChromaContext(int algorithm)
        {
            this.algorithm = algorithm;

            var config = FingerprinterConfiguration.CreateConfiguration(algorithm);
            this.fingerprinter = new Fingerprinter(config);
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChromaContext" /> class.
        /// </summary>
        /// <param name="algorithm">The algorithm to use, see <see cref="ChromaprintAlgorithm" /> (default = TEST2)</param>
        /// <param name="fftService">The FFT service.</param>
        public ChromaContext(ChromaprintAlgorithm algorithm, IFFTService fftService)
        {
            this.algorithm = (int)algorithm;

            var config = FingerprinterConfiguration.CreateConfiguration(algorithm);
            this.fingerprinter = new Fingerprinter(config, fftService);
        }