C# Class GAudio.AGATPanInfo

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

Méthodes publiques

Méthode 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 méthode

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
Résultat void

PanMixSample() public abstract méthode

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
Résultat void

SetGains() public abstract méthode

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
Résultat void

SetStereoPan() public méthode

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. ///
Résultat void

SetStereoPan() public méthode

overload which adds gain control.
public SetStereoPan ( float pan, float gain ) : void
pan float
gain float
Résultat void