GAudio.GATAudioThreadStreamToCache.GATAudioThreadStreamToCache C# (CSharp) Method

GATAudioThreadStreamToCache() public method

Initializes a new instance of the GATAudioThreadStreamToCache class.
public GATAudioThreadStreamToCache ( IGATAudioThreadStream stream, GATData caches, AtEndHandler handler = null ) : System.Collections
stream IGATAudioThreadStream The observed multichannel or mono stream.
caches GATData The caches to record to, one per channel must be provided.
handler AtEndHandler Optional callback fired when the cache is full.
return System.Collections
        public GATAudioThreadStreamToCache( IGATAudioThreadStream stream, GATData[] caches, AtEndHandler handler = null )
        {
            _numFramesPerRead = stream.BufferSizePerChannel;

            Caches = caches;

            _stream = stream;

            _onEnd = handler;
        }