SoundStreamer::AllocateStreamMemory
Defined in:
Allocates memory for use by the streamer object.
C4Sound.h
Prototype
void AllocateStreamMemory(uint32 workSize, uint32 streamSize);
Parameters
workSize |
The size of the streamer's work buffer. |
streamSize |
The size of each decompressed output buffer. |
Description
A streamer object should call the AllocateStreamMemory
to allocate the memory that it needs for streaming. The work buffer is a buffer that can be used by the streamer object for any purpose, and it's size is specified by the workSize
parameter. A streamer object has at least two stream buffers, and the size of each is specified by the streamSize
parameter. The stream buffers are where the decompressed audio data is written when the Sound Manager calls the SoundStreamer::FillBuffer
function.
See Also