C# Class GAudio.GATLoopedSample

A wrapper for GATData or IGATProcessedSample objects. Adds gapless looping and smooth stop behaviour.
Inheritance: AGATWrappedSample
ファイルを表示 Open project: gregzo/G-Audio

Public Methods

Method Description
GATLoopedSample ( IGATDataOwner dataOwner, int numberOfLoops = -1, AGATPanInfo panInfo = null ) : System.Collections

Wraps audio data in a looping container. Set NumberOfLoops to -1 for infinite looping. 0 for no loop. Pass a GATFixedPanInfo or GATDynamicPanInfo object if you intend to route playback directly to the player ( as opposed to through a track ).

Protected Methods

Method Description
PlayerWillMixSample ( IGATBufferedSample sample, int length, float audioBuffer ) : bool

Method Details

GATLoopedSample() public method

Wraps audio data in a looping container. Set NumberOfLoops to -1 for infinite looping. 0 for no loop. Pass a GATFixedPanInfo or GATDynamicPanInfo object if you intend to route playback directly to the player ( as opposed to through a track ).
public GATLoopedSample ( IGATDataOwner dataOwner, int numberOfLoops = -1, AGATPanInfo panInfo = null ) : System.Collections
dataOwner IGATDataOwner
numberOfLoops int
panInfo AGATPanInfo
return System.Collections

PlayerWillMixSample() protected method

protected PlayerWillMixSample ( IGATBufferedSample sample, int length, float audioBuffer ) : bool
sample IGATBufferedSample
length int
audioBuffer float
return bool