C# Class GAudio.GATAudioThreadStreamToTrack

Routes a mono stream to a player's track. Note that trying to route multiple streams to the same track will throw an exception.
Inheritance: IGATAudioThreadStreamClient, IGATTrackContributor
ファイルを表示 Open project: gregzo/G-Audio Class Usage Examples

Public Methods

Method Description
GATAudioThreadStreamToTrack ( GATTrack track, IGATAudioThreadStream stream, bool exclusive ) : System.Collections

Streaming to the specified track will not begin until Start() is called.

Start ( ) : void

Starts mixing the stream to the specified track. An exception is thrown if the track already has a contributor.

Stop ( ) : void

Stops streaming to the track, which will then be available to other contributors.

Private Methods

Method Description
IGATAudioThreadStreamClient ( float data, int offset, bool emptyData, IGATAudioThreadStream stream ) : void
IGATTrackContributor ( GATData trackMonoBuffer, int trackNb ) : bool

Method Details

GATAudioThreadStreamToTrack() public method

Streaming to the specified track will not begin until Start() is called.
public GATAudioThreadStreamToTrack ( GATTrack track, IGATAudioThreadStream stream, bool exclusive ) : System.Collections
track GATTrack
stream IGATAudioThreadStream
exclusive bool
return System.Collections

Start() public method

Starts mixing the stream to the specified track. An exception is thrown if the track already has a contributor.
public Start ( ) : void
return void

Stop() public method

Stops streaming to the track, which will then be available to other contributors.
public Stop ( ) : void
return void