C# Class GAudio.GATTrack

Inheritance: UnityEngine.ScriptableObject, IGATFilterableStream, IGATAudioThreadStreamOwner
Afficher le fichier Open project: gregzo/G-Audio Class Usage Examples

Protected Properties

Свойство Type Description
_active bool
_audioThreadStreamProxy GATAudioThreadStreamProxy
_contributor IGATTrackContributor
_mute bool
_panInfo GATDynamicPanInfo
_trackBuffer GATData

Private Properties

Свойство Type Description
OnDestroy void
PlayerWillBeginMixing void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnEnable ( ) : void

Private Methods

Méthode Description
OnDestroy ( ) : void

Call before disposing of a track permanently.

PlayerWillBeginMixing ( ) : void

Method Details

FXAndMixTo() public méthode

public FXAndMixTo ( float audioBuffer ) : bool
audioBuffer float
Résultat bool

GetAudioThreadStream() public méthode

public GetAudioThreadStream ( int index ) : IGATAudioThreadStream
index int
Résultat IGATAudioThreadStream

GetGainForChannel() public méthode

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

InitTrack() public méthode

public InitTrack ( GATPlayer parentPlayer, int trackNb ) : void
parentPlayer GATPlayer
trackNb int
Résultat void

MixFrom() public méthode

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

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

SetGainForChannel() public méthode

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

SubscribeContributor() public méthode

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

TrackNbDidChange() public méthode

public TrackNbDidChange ( int newNb ) : void
newNb int
Résultat void

UnsubscribeContributor() public méthode

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

Property Details

_active protected_oe property

protected bool _active
Résultat bool

_audioThreadStreamProxy protected_oe property

protected GATAudioThreadStreamProxy,GAudio _audioThreadStreamProxy
Résultat GATAudioThreadStreamProxy

_contributor protected_oe property

protected IGATTrackContributor _contributor
Résultat IGATTrackContributor

_mute protected_oe property

protected bool _mute
Résultat bool

_panInfo protected_oe property

protected GATDynamicPanInfo _panInfo
Résultat GATDynamicPanInfo

_trackBuffer protected_oe property

protected GATData,GAudio _trackBuffer
Résultat GATData