C4 Engine
C4 Engine API Documentation

SoundStreamer::StartStream

Defined in:  C4Sound.h
Called to prepare a stream for playing.
Prototype

virtual SoundResult StartStream(void) = 0;

Description
The Sound Manager calls the StartStream function when the sound to which the streamer is assigned is played. The StartStream function must be implemented by each subclass of the SoundStreamer class, and it should do whatever is necessary to prepare the stream for playing. The StartStream function is called before the first call to SoundStreamer::FillBuffer is made.

The return value should be kSoundOkay if the function is successful.
See Also

SoundStreamer::StartStreamComponent

SoundStreamer::FillBuffer