C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

class SoundStreamer

Defined in:  C4Sound.h
The base class for all sound streamer objects.
Definition

class SoundStreamer

Member Functions
SoundStreamer::SetChannelCount Sets the number of audio channels.
SoundStreamer::SetSampleRate Sets the audio sampling rate.
SoundStreamer::GetWorkBufferSize Returns the size of the work buffer.
SoundStreamer::GetWorkBuffer Returns a pointer to the work buffer.
SoundStreamer::AllocateStreamMemory Allocates memory for use by the streamer object.
SoundStreamer::GetTotalFrameCount Called to retrieve the total frame count for a stream.
SoundStreamer::StartStream Called to prepare a stream for playing.
SoundStreamer::StartStreamComponent Called when a stream is looped.
SoundStreamer::FillBuffer Called when audio data is needed.
Constructor

SoundStreamer();

The SoundStreamer constructed has protected access.
Description
The SoundStreamer class is the base class for all sound streamer objects. A sound stream is established by instantiating a subclass of SoundStreamer and then passing it to the Sound::Stream function.
See Also

WaveStreamer

Sound::Stream