C# Class GAudio.AGATStreamObserver

Base class for components which need to subscribe to an IGATAudioThreadStream.
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: gregzo/G-Audio

Public Properties

Property Type Description
streamComponent UnityEngine.Component
streamIndex int
streamIsTrack bool

Protected Properties

Property Type Description
_stream IGATAudioThreadStream

Protected Methods

Method Description
GetStream ( ) : void

Call from derived classes to attempt to get a valid stream from the streamComponent and store it in _stream.

Start ( ) : void

Method Details

GetStream() protected method

Call from derived classes to attempt to get a valid stream from the streamComponent and store it in _stream.
protected GetStream ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Property Details

_stream protected_oe property

protected IGATAudioThreadStream _stream
return IGATAudioThreadStream

streamComponent public_oe property

The component which we will grab the stream from. Should implement IGATAudioThreadStreamOwner.
public Component,UnityEngine streamComponent
return UnityEngine.Component

streamIndex public_oe property

The index of the stream. A single IGATAudioThreadStreamOwner component can broadcast multiple streams - which one should we observe? If streamIsTrack is true, this will specify the track number.
public int streamIndex
return int

streamIsTrack public_oe property

Are we observing a GATPlayer's track?
public bool streamIsTrack
return bool