C# Класс GAudio.AGATPanInfo

Base class for handling panning of mono samples to interlaced multi channel data.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

PanMixProcessingBuffer() публичный абстрактный Метод

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
Результат void

PanMixSample() публичный абстрактный Метод

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
Результат void

SetGains() публичный абстрактный Метод

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
Результат void

SetStereoPan() публичный Метод

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. ///
Результат void

SetStereoPan() публичный Метод

overload which adds gain control.
public SetStereoPan ( float pan, float gain ) : void
pan float
gain float
Результат void