C4 Engine
C4 Engine API Documentation

SoundStreamer::AllocateStreamMemory

Defined in:  C4Sound.h
Allocates memory for use by the streamer object.
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

SoundStreamer::FillBuffer

SoundStreamer::GetWorkBufferSize

SoundStreamer::GetWorkBuffer