C# Class GAudio.GATFixedPanInfo

Use this class when you do not need a sample's gains per channel to change during playback. If you do need live pan control, use GATDynamicPanInfo instead. Note: GATPanInfo objects are only required when not routing playback through a GATTrack. Note 2: a single instance may be used to pan multiple concurrent samples.
Inheritance: AGATPanInfo
Afficher le fichier Open project: gregzo/G-Audio

Méthodes publiques

Свойство Type Description
channelGains List

Méthodes publiques

Méthode Description
GATFixedPanInfo ( ) : System.Collections
GATFixedPanInfo ( float gains ) : System.Collections

Initializes a new instance of the GATFixedPanInfo class.

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

This method may be used if you subscribe to GATPlayer's mixing delegate and choose to override default mixing.

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

Called by GATPlayer to mix to interlaced data according to specified gains per channel. This method may be useful if you subscribe to GATPlayer's mixing delegate and choose to override default mixing.

SetGains ( float gains ) : void

Sets the gains for all channels. Can only be set once.

Method Details

GATFixedPanInfo() public méthode

public GATFixedPanInfo ( ) : System.Collections
Résultat System.Collections

GATFixedPanInfo() public méthode

Initializes a new instance of the GATFixedPanInfo class.
/// Is thrown when the passed array's /// length does not match the number of /// channels your project is setup to output. ///
public GATFixedPanInfo ( float gains ) : System.Collections
gains float /// An array of gains indexed per channel. Silent channels /// should be represented by 0f gain values. ///
Résultat System.Collections

PanMixProcessingBuffer() public méthode

This method may be used if you subscribe to GATPlayer's mixing delegate and choose to override default mixing.
public PanMixProcessingBuffer ( IGATBufferedSample sample, int length, float audioBuffer, float gain = 1f ) : void
sample IGATBufferedSample
length int
audioBuffer float
gain float
Résultat void

PanMixSample() public méthode

Called by GATPlayer to mix to interlaced data according to specified gains per channel. This method may be useful if you subscribe to GATPlayer's mixing delegate and choose to override default mixing.
public PanMixSample ( IGATBufferedSample sample, int length, float audioBuffer, float gain = 1f ) : void
sample IGATBufferedSample
length int
audioBuffer float
gain float
Résultat void

SetGains() public méthode

Sets the gains for all channels. Can only be set once.
/// Is thrown when attempting to /// set gains more than once, or if /// the provided gains array length /// does not match the number of channels /// your project is setup to output. ///
public SetGains ( float gains ) : void
gains float /// Gains per channel. Use 0f for /// silent channels. ///
Résultat void

Property Details

channelGains public_oe property

public List channelGains
Résultat List