C# 클래스 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.
상속: AGATPanInfo
파일 보기 프로젝트 열기: gregzo/G-Audio

공개 프로퍼티들

프로퍼티 타입 설명
channelGains List

공개 메소드들

메소드 설명
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.

메소드 상세

GATFixedPanInfo() 공개 메소드

public GATFixedPanInfo ( ) : System.Collections
리턴 System.Collections

GATFixedPanInfo() 공개 메소드

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. ///
리턴 System.Collections

PanMixProcessingBuffer() 공개 메소드

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
리턴 void

PanMixSample() 공개 메소드

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
리턴 void

SetGains() 공개 메소드

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. ///
리턴 void

프로퍼티 상세

channelGains 공개적으로 프로퍼티

public List channelGains
리턴 List