C# Class DSPUtil.Dither

Show file Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Public Methods

Method Description
Dither ( DitherType type, uint sampleRate, ushort bitsPerSample ) : System
process ( ISample samp ) : ISample

Process a ISample (in-place; the original object is returned, with modified data)

process ( double samp ) : int
process ( float samp ) : int
processDouble ( double samp ) : double
reset ( ) : void

Private Methods

Method Description
FilterArray ( DitherType type ) : double[]
MaxValue ( ushort bitsPerSample ) : double
MinValue ( ushort bitsPerSample ) : double
NextRandom ( ) : double
NextRandom2 ( ) : double

Method Details

Dither() public method

public Dither ( DitherType type, uint sampleRate, ushort bitsPerSample ) : System
type DitherType
sampleRate uint
bitsPerSample ushort
return System

process() public method

Process a ISample (in-place; the original object is returned, with modified data)
public process ( ISample samp ) : ISample
samp ISample
return ISample

process() public method

public process ( double samp ) : int
samp double
return int

process() public method

public process ( float samp ) : int
samp float
return int

processDouble() public method

public processDouble ( double samp ) : double
samp double
return double

reset() public method

public reset ( ) : void
return void