C# 클래스 GAudio.GATTrack

상속: UnityEngine.ScriptableObject, IGATFilterableStream, IGATAudioThreadStreamOwner
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_active bool
_audioThreadStreamProxy GATAudioThreadStreamProxy
_contributor IGATTrackContributor
_mute bool
_panInfo GATDynamicPanInfo
_trackBuffer GATData

Private Properties

프로퍼티 타입 설명
OnDestroy void
PlayerWillBeginMixing void

공개 메소드들

메소드 설명
FXAndMixTo ( float audioBuffer ) : bool
GetAudioThreadStream ( int index ) : IGATAudioThreadStream
GetGainForChannel ( int channel ) : float

Current gain for the specified channel. Returns -1f if the channel doesn't exist.

InitTrack ( GATPlayer parentPlayer, int trackNb ) : void
MixFrom ( GATData data, int index, int offsetInBuffer, int length, float gain = 1f ) : void

Called by GATPlayer. Needed when overriding default mixing: If a sample is routed through a track, it should be mixed to it.

OnDisable ( ) : void
SetGainForChannel ( float gain, int channel ) : void

Set gain for the specified channel. Does nothing if the channel doesn't exist.

SubscribeContributor ( IGATTrackContributor contributor ) : bool

A track may have one IGATTrackContributor which will get the opportunity to mix directly to the track buffer before filters are applied. This method returns false if another contributor is already set.

TrackNbDidChange ( int newNb ) : void
UnsubscribeContributor ( IGATTrackContributor contributor ) : bool

Unsubscribes the contributor. Returns false if the current contributor is different from the one making the call.

보호된 메소드들

메소드 설명
OnEnable ( ) : void

비공개 메소드들

메소드 설명
OnDestroy ( ) : void

Call before disposing of a track permanently.

PlayerWillBeginMixing ( ) : void

메소드 상세

FXAndMixTo() 공개 메소드

public FXAndMixTo ( float audioBuffer ) : bool
audioBuffer float
리턴 bool

GetAudioThreadStream() 공개 메소드

public GetAudioThreadStream ( int index ) : IGATAudioThreadStream
index int
리턴 IGATAudioThreadStream

GetGainForChannel() 공개 메소드

Current gain for the specified channel. Returns -1f if the channel doesn't exist.
public GetGainForChannel ( int channel ) : float
channel int
리턴 float

InitTrack() 공개 메소드

public InitTrack ( GATPlayer parentPlayer, int trackNb ) : void
parentPlayer GATPlayer
trackNb int
리턴 void

MixFrom() 공개 메소드

Called by GATPlayer. Needed when overriding default mixing: If a sample is routed through a track, it should be mixed to it.
public MixFrom ( GATData data, int index, int offsetInBuffer, int length, float gain = 1f ) : void
data GATData
index int
offsetInBuffer int
length int
gain float
리턴 void

OnDisable() 공개 메소드

public OnDisable ( ) : void
리턴 void

OnEnable() 보호된 메소드

protected OnEnable ( ) : void
리턴 void

SetGainForChannel() 공개 메소드

Set gain for the specified channel. Does nothing if the channel doesn't exist.
public SetGainForChannel ( float gain, int channel ) : void
gain float
channel int
리턴 void

SubscribeContributor() 공개 메소드

A track may have one IGATTrackContributor which will get the opportunity to mix directly to the track buffer before filters are applied. This method returns false if another contributor is already set.
public SubscribeContributor ( IGATTrackContributor contributor ) : bool
contributor IGATTrackContributor
리턴 bool

TrackNbDidChange() 공개 메소드

public TrackNbDidChange ( int newNb ) : void
newNb int
리턴 void

UnsubscribeContributor() 공개 메소드

Unsubscribes the contributor. Returns false if the current contributor is different from the one making the call.
public UnsubscribeContributor ( IGATTrackContributor contributor ) : bool
contributor IGATTrackContributor
리턴 bool

프로퍼티 상세

_active 보호되어 있는 프로퍼티

protected bool _active
리턴 bool

_audioThreadStreamProxy 보호되어 있는 프로퍼티

protected GATAudioThreadStreamProxy,GAudio _audioThreadStreamProxy
리턴 GATAudioThreadStreamProxy

_contributor 보호되어 있는 프로퍼티

protected IGATTrackContributor _contributor
리턴 IGATTrackContributor

_mute 보호되어 있는 프로퍼티

protected bool _mute
리턴 bool

_panInfo 보호되어 있는 프로퍼티

protected GATDynamicPanInfo _panInfo
리턴 GATDynamicPanInfo

_trackBuffer 보호되어 있는 프로퍼티

protected GATData,GAudio _trackBuffer
리턴 GATData