C# Class GAudio.SourceToStreamModule

This component broadcasts a G-Audio audio stream ( IGATAudioThreadStream ) from a Unity AudioSource. The stream will have as many interleaved channels as Unity outputs ( GATInfo.NbOfChannels ). The stream should be de-interleaved with a StreamSplitterModule before it can be routed through G-Audio tracks.
Inheritance: UnityEngine.MonoBehaviour, IGATAudioThreadStreamOwner
Mostra file Open project: gregzo/G-Audio

Public Properties

Property Type Description
playThrough bool

Protected Properties

Property Type Description
_audioThreadStreamProxy GATAudioThreadStreamProxy
_source UnityEngine.AudioSource

Private Properties

Property Type Description
IGATAudioThreadStreamOwner IGATAudioThreadStream

Protected Methods

Method Description
Awake ( ) : void
OnAudioFilterRead ( float data, int numChannels ) : void

Private Methods

Method Description
IGATAudioThreadStreamOwner ( int index ) : IGATAudioThreadStream

Method Details

Awake() protected method

protected Awake ( ) : void
return void

OnAudioFilterRead() protected method

protected OnAudioFilterRead ( float data, int numChannels ) : void
data float
numChannels int
return void

Property Details

_audioThreadStreamProxy protected_oe property

protected GATAudioThreadStreamProxy,GAudio _audioThreadStreamProxy
return GATAudioThreadStreamProxy

_source protected_oe property

protected AudioSource,UnityEngine _source
return UnityEngine.AudioSource

playThrough public_oe property

If true, broadcasting the stream will not interrupt normal audio playback.
public bool playThrough
return bool