C# Класс GAudio.GATTrack

Наследование: UnityEngine.ScriptableObject, IGATFilterableStream, IGATAudioThreadStreamOwner
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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