BufferPoolAudioClipStream Class
A data container that stores all data within a float buffer
static void IncrementPool ( )
Increment pool when
Audio System using it OnEnable
static void DecrementPool ( )
Decrement pool when
Audio System using it OnEnable
BufferPoolAudioClipStream ( int newChannels,
int newSampleRate,
float newReadyLength,
float newMaxLength )
Constructor for buffer pool that ensures multiple buffers are preloaded and ready
virtual override void Unload ( )
Unload the current samples
virtual override void AddSamples ( float [] buffer,
int bufferOffset,
int bufferLength )
Adds a sample buffer to the current stream in its entirety.
virtual override int ReadSamples ( int readOffset,
Reads as many samples as possible from the specified read offset
virtual override int ReadSamples ( int readOffset,
float [] destinationSamples,
int destinationOffset )
Reads as many samples as possible from the specified read offset into the destination with the specified offset