C# Класс GAudio.StreamToCacheModule

Component for caching a stream to memory. Multichannel streams will be cached in seperate mono caches. Supports sample accurate start and stop.
Наследование: AGATStreamObserver
Показать файл Открыть проект

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

Свойство Тип Описание
allocateCacheInStart bool
cacheDuration double
useManagedData bool

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

Метод Описание
AllocateCaches ( double duration, bool managedData ) : void

Allocates caches retrievable in the Caches property.

OnDestroy ( ) : void
ReleaseCache ( ) : void

If allocated caches use managed data, calling this method makes sure that caches will be returned to the memory pool when possible.

StartCaching ( double dspTime = 0d, GATAudioThreadStreamToCache onAtEnd = null ) : void

Starts caching the stream at a precise dspTime, or asap if no dspTime is provided or if the provided dspTime is too soon. onAtEnd callback is fired when the cache is full, wether looping or not.

StopCaching ( ) : void

Immediately stops caching the stream.

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

Метод Описание
Start ( ) : void

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

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

Allocates caches retrievable in the Caches property.
public AllocateCaches ( double duration, bool managedData ) : void
duration double
managedData bool
Результат void

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

public OnDestroy ( ) : void
Результат void

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

If allocated caches use managed data, calling this method makes sure that caches will be returned to the memory pool when possible.
public ReleaseCache ( ) : void
Результат void

Start() защищенный Метод

protected Start ( ) : void
Результат void

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

Starts caching the stream at a precise dspTime, or asap if no dspTime is provided or if the provided dspTime is too soon. onAtEnd callback is fired when the cache is full, wether looping or not.
public StartCaching ( double dspTime = 0d, GATAudioThreadStreamToCache onAtEnd = null ) : void
dspTime double
onAtEnd GATAudioThreadStreamToCache
Результат void

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

Immediately stops caching the stream.
public StopCaching ( ) : void
Результат void

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

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

If true, caches will be allocated in start.
public bool allocateCacheInStart
Результат bool

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

Duration of the cache to allocate in Start
public double cacheDuration
Результат double

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

Should the cache be allocated using G-Audio's allocator? Make sure GATManager.DefaultAllocator.LargestAllocatableChunk is large enough if you use managed data.
public bool useManagedData
Результат bool