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
파일 보기 프로젝트 열기: gregzo/G-Audio

공개 프로퍼티들

프로퍼티 타입 설명
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