C# Class GAudio.AGATPanInfo

Base class for handling panning of mono samples to interlaced multi channel data.
Show file Open project: gregzo/G-Audio Class Usage Examples

Public Methods

Method Description
PanMixProcessingBuffer ( IGATBufferedSample sample, int length, float audioBuffer, float gain = 1f ) : void

Pans and adds the mono data of the processing buffer to the provided buffer.

PanMixSample ( IGATBufferedSample sample, int length, float audioBuffer, float gain = 1f ) : void

Pans and adds the mono data of the sample to the provided buffer.

SetGains ( float gains ) : void

Sets all channels' gains simultaneously. The array of gains provided should have as many elements as there are channels.

SetStereoPan ( float pan ) : void

Convenience method for stereo panning Standard panning with gain split between channels

SetStereoPan ( float pan, float gain ) : void

overload which adds gain control.

Method Details

PanMixProcessingBuffer() public abstract method

Pans and adds the mono data of the processing buffer to the provided buffer.
public abstract PanMixProcessingBuffer ( IGATBufferedSample sample, int length, float audioBuffer, float gain = 1f ) : void
sample IGATBufferedSample
length int
audioBuffer float
gain float
return void

PanMixSample() public abstract method

Pans and adds the mono data of the sample to the provided buffer.
public abstract PanMixSample ( IGATBufferedSample sample, int length, float audioBuffer, float gain = 1f ) : void
sample IGATBufferedSample
length int
audioBuffer float
gain float
return void

SetGains() public abstract method

Sets all channels' gains simultaneously. The array of gains provided should have as many elements as there are channels.
public abstract SetGains ( float gains ) : void
gains float
return void

SetStereoPan() public method

Convenience method for stereo panning Standard panning with gain split between channels
public SetStereoPan ( float pan ) : void
pan float /// Pan value between 0f and 1f. ///
return void

SetStereoPan() public method

overload which adds gain control.
public SetStereoPan ( float pan, float gain ) : void
pan float
gain float
return void