C# Class DSPUtil.CircularBuffer

A circular buffer. NB: only have one consumer of the iterator at a time!!
Inheritance: SoundObj
Exibir arquivo Open project: hughpyle/inguz-DSPUtil

Public Methods

Method Description
CircularBuffer ( ISoundObj input, uint bufsize ) : System

Create a circular buffer with a given size

CircularBuffer ( uint bufsize ) : System

Create a circular buffer with a given size

Mean ( ) : ISample

"Average" - arithmetical mean of all samples in buffer

MeanDb ( ) : ISample

"Average" - arithmetical mean of dB value of all samples in buffer

Peak ( ) : ISample

Peak value of all samples, ever

StdDev ( ) : ISample

Standard deviation of all samples in buffer

StdDevDb ( ) : ISample

Standard deviation in dB of all samples in buffer

this ( int arg ) : ISample

Access the nth sample. Sample zero is always the "current" sample (the one most recently returned from the iterator). Sample[-1] is the previous sample. Sample [1] is the oldest sample we have in buffer.

Method Details

CircularBuffer() public method

Create a circular buffer with a given size
public CircularBuffer ( ISoundObj input, uint bufsize ) : System
input ISoundObj Input stream
bufsize uint Size of the circular buffer
return System

CircularBuffer() public method

Create a circular buffer with a given size
public CircularBuffer ( uint bufsize ) : System
bufsize uint Size of the circular buffer
return System

Mean() public method

"Average" - arithmetical mean of all samples in buffer
public Mean ( ) : ISample
return ISample

MeanDb() public method

"Average" - arithmetical mean of dB value of all samples in buffer
public MeanDb ( ) : ISample
return ISample

Peak() public method

Peak value of all samples, ever
public Peak ( ) : ISample
return ISample

StdDev() public method

Standard deviation of all samples in buffer
public StdDev ( ) : ISample
return ISample

StdDevDb() public method

Standard deviation in dB of all samples in buffer
public StdDevDb ( ) : ISample
return ISample

this() public method

Access the nth sample. Sample zero is always the "current" sample (the one most recently returned from the iterator). Sample[-1] is the previous sample. Sample [1] is the oldest sample we have in buffer.
public this ( int arg ) : ISample
arg int n
return ISample