C# Класс GAudio.AGATWrappedSample

Base class for playback of wrapped GATData and IGATProcessedSample objects
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
panInfo AGATPanInfo

Защищенные свойства (Protected)

Свойство Тип Описание
_dataOwner IGATDataOwner
_endDspTime double
_shouldStop bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
PlayerWillMixSample ( IGATBufferedSample sample, int length, float audioBuffer ) : bool

Описание методов

AGATWrappedSample() публичный Метод

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
Результат System.Collections

ElegantStop() публичный Метод

Smoothly stops playback by fading out the audio data in audio buffer size ( non destructive, data is buffered before the fade ).
public ElegantStop ( ) : void
Результат void

PlayPanned() публичный Метод

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
Результат void

PlayPanned() публичный Метод

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
Результат void

PlayScheduled() публичный Метод

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
Результат void

PlayScheduled() публичный Метод

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
Результат void

PlayScheduledThroughTrack() публичный Метод

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
Результат void

PlayScheduledThroughTrack() публичный Метод

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
Результат void

PlayThroughTrack() публичный Метод

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
Результат void

PlayThroughTrack() публичный Метод

Plays the sample through the default player's track trackNb
public PlayThroughTrack ( int trackNb, float gain = 1f ) : void
trackNb int
gain float
Результат void

PlayerWillMixSample() защищенный абстрактный Метод

protected abstract PlayerWillMixSample ( IGATBufferedSample sample, int length, float audioBuffer ) : bool
sample IGATBufferedSample
length int
audioBuffer float
Результат bool

Описание свойств

_dataOwner защищенное свойство

protected IGATDataOwner _dataOwner
Результат IGATDataOwner

_endDspTime защищенное свойство

protected double _endDspTime
Результат double

_shouldStop защищенное свойство

protected bool _shouldStop
Результат bool

panInfo публичное свойство

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
Результат AGATPanInfo