C# Class AcoustID.Chromaprint.AudioProcessor

Audio processor with multi-channel to mono converting and resampling. Passes the pre-processed data on to a given consumer.
Inheritance: IAudioConsumer
Datei anzeigen Open project: wo80/AcoustID.NET Class Usage Examples

Public Methods

Method Description
AudioProcessor ( int sample_rate, IAudioConsumer consumer ) : AcoustID.Audio
Consume ( short input, int length ) : void
Flush ( ) : void
Reset ( int sample_rate, int num_channels ) : bool

Private Methods

Method Description
Load ( short input, int offset, int length ) : int
LoadMono ( short input, int offset, int length ) : void
LoadMultiChannel ( short input, int offset, int length ) : void
LoadStereo ( short input, int offset, int length ) : void
Resample ( ) : void

Method Details

AudioProcessor() public method

public AudioProcessor ( int sample_rate, IAudioConsumer consumer ) : AcoustID.Audio
sample_rate int
consumer IAudioConsumer
return AcoustID.Audio

Consume() public method

public Consume ( short input, int length ) : void
input short
length int
return void

Flush() public method

public Flush ( ) : void
return void

Reset() public method

public Reset ( int sample_rate, int num_channels ) : bool
sample_rate int
num_channels int
return bool