C# Class SoundFingerprinting.Audio.SamplesAggregator

Inheritance: ISamplesAggregator
ファイルを表示 Open project: AddictedCS/soundfingerprinting

Public Methods

Method Description
ReadSamplesFromSource ( ISamplesProvider samplesProvider, double secondsToRead, int sampleRate ) : float[]

Private Methods

Method Description
ConcatenateChunksOfSamples ( IReadOnlyList chunks ) : float[]
CopyFromBufferToNewChunk ( int chunkLength, float buffer ) : float[]
GetBuffer ( double secondsToRead, int sampleRate ) : float[]
GetBufferLength ( double secondsToRead, int sampleRate ) : int
GetExactNumberOfBytesToRead ( double secondsToRead, int sampleRate ) : int
GetNewChunkFromBuffer ( int totalBytesRead, int totalBytesToRead, int bytesRead, float buffer ) : float[]
GetTotalBytesToRead ( double secondsToRead, int sampleRate ) : int

Method Details

ReadSamplesFromSource() public method

public ReadSamplesFromSource ( ISamplesProvider samplesProvider, double secondsToRead, int sampleRate ) : float[]
samplesProvider ISamplesProvider
secondsToRead double
sampleRate int
return float[]