C# Class GAudio.AGATStreamObserver

Base class for components which need to subscribe to an IGATAudioThreadStream.
Inheritance: UnityEngine.MonoBehaviour
Show file 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 property

protected IGATAudioThreadStream _stream
return IGATAudioThreadStream

streamComponent public property

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

streamIndex public 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 property

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