C# Class GAudio.AGATWrappedSample

Base class for playback of wrapped GATData and IGATProcessedSample objects
Afficher le fichier Open project: gregzo/G-Audio

Méthodes publiques

Свойство Type Description
panInfo AGATPanInfo

Protected Properties

Свойство Type Description
_dataOwner IGATDataOwner
_endDspTime double
_shouldStop bool

Méthodes publiques

Méthode Description
AGATWrappedSample ( IGATDataOwner dataOwner, AGATPanInfo ipaninfo = null ) : System.Collections

Data owners include IGATProcessedSample and GATData obects. Specify a GATDynamicPanInfo or GATFixedPanInfo object to enable routing playback directly to the player ( not through tracks ).

ElegantStop ( ) : void

Smoothly stops playback by fading out the audio data in audio buffer size ( non destructive, data is buffered before the fade ).

PlayPanned ( GATPlayer player, float gain = 1f ) : void

Plays the sample directly through the specified player If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.

PlayPanned ( float gain = 1f ) : void

Plays the sample directly through the Default Player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.

PlayScheduled ( GATPlayer player, double dspTime, float gain = 1f ) : void

Plays the sample directly through the specified player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.

PlayScheduled ( double dspTime, float gain = 1f ) : void

Plays the sample directly through the Default Player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.

PlayScheduledThroughTrack ( GATPlayer player, double dspTime, int trackNb, float gain = 1f ) : void

Plays the sample through the specified player's track trackNb

PlayScheduledThroughTrack ( double dspTime, int trackNb, float gain = 1f ) : void

Plays the sample through the default player's track trackNb

PlayThroughTrack ( GATPlayer player, int trackNb, float gain = 1f ) : void

Plays the sample through the specified player's track trackNb

PlayThroughTrack ( int trackNb, float gain = 1f ) : void

Plays the sample through the default player's track trackNb

Méthodes protégées

Méthode Description
PlayerWillMixSample ( IGATBufferedSample sample, int length, float audioBuffer ) : bool

Method Details

AGATWrappedSample() public méthode

Data owners include IGATProcessedSample and GATData obects. Specify a GATDynamicPanInfo or GATFixedPanInfo object to enable routing playback directly to the player ( not through tracks ).
public AGATWrappedSample ( IGATDataOwner dataOwner, AGATPanInfo ipaninfo = null ) : System.Collections
dataOwner IGATDataOwner
ipaninfo AGATPanInfo
Résultat System.Collections

ElegantStop() public méthode

Smoothly stops playback by fading out the audio data in audio buffer size ( non destructive, data is buffered before the fade ).
public ElegantStop ( ) : void
Résultat void

PlayPanned() public méthode

Plays the sample directly through the specified player If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.
public PlayPanned ( GATPlayer player, float gain = 1f ) : void
player GATPlayer
gain float
Résultat void

PlayPanned() public méthode

Plays the sample directly through the Default Player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.
public PlayPanned ( float gain = 1f ) : void
gain float
Résultat void

PlayScheduled() public méthode

Plays the sample directly through the specified player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.
public PlayScheduled ( GATPlayer player, double dspTime, float gain = 1f ) : void
player GATPlayer
dspTime double
gain float
Résultat void

PlayScheduled() public méthode

Plays the sample directly through the Default Player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.
public PlayScheduled ( double dspTime, float gain = 1f ) : void
dspTime double
gain float
Résultat void

PlayScheduledThroughTrack() public méthode

Plays the sample through the specified player's track trackNb
public PlayScheduledThroughTrack ( GATPlayer player, double dspTime, int trackNb, float gain = 1f ) : void
player GATPlayer
dspTime double
trackNb int
gain float
Résultat void

PlayScheduledThroughTrack() public méthode

Plays the sample through the default player's track trackNb
public PlayScheduledThroughTrack ( double dspTime, int trackNb, float gain = 1f ) : void
dspTime double
trackNb int
gain float
Résultat void

PlayThroughTrack() public méthode

Plays the sample through the specified player's track trackNb
public PlayThroughTrack ( GATPlayer player, int trackNb, float gain = 1f ) : void
player GATPlayer
trackNb int
gain float
Résultat void

PlayThroughTrack() public méthode

Plays the sample through the default player's track trackNb
public PlayThroughTrack ( int trackNb, float gain = 1f ) : void
trackNb int
gain float
Résultat void

PlayerWillMixSample() protected abstract méthode

protected abstract PlayerWillMixSample ( IGATBufferedSample sample, int length, float audioBuffer ) : bool
sample IGATBufferedSample
length int
audioBuffer float
Résultat bool

Property Details

_dataOwner protected_oe property

protected IGATDataOwner _dataOwner
Résultat IGATDataOwner

_endDspTime protected_oe property

protected double _endDspTime
Résultat double

_shouldStop protected_oe property

protected bool _shouldStop
Résultat bool

panInfo public_oe property

Use to manipulate gain per channel or stereo pan when not playing through a track. Requires a GATDynamicPanInfo reference to be passed when instantiating the class.
public AGATPanInfo,GAudio panInfo
Résultat AGATPanInfo