Home | All Classes | Grouped Classes | Index | Search

Class CL_Streamed_RawSample

Streamed sample in raw PCM format (no header). More...

Derived from: CL_StreamSoundProvider
Derived by: none
Group: Sound (Sound Providers)

#include <ClanLib/sound.h>

Construction:

create

Creates a soundbuffer using this provider.

CL_Streamed_RawSample

Constructs an instance of this class.

Operations:

begin_session

Called by the sound implementation when a session is begun.

end_session

Called by the sound implementation just before a playback session has ended.

Implementation:

filename

inputprovider

looped

format

frequency

Detailed description:

This class providers playback support for raw PCM samples. That is just the PCM sample data, not header.

Unlike CL_Sample_Raw, this class doesn't load the entire PCM stream into memory. Instead it slowly loads it from disk as the data is needed. With very large samples, this is a very good idea.

If the sample is small and used a lot, you should consider using CL_Sample_Raw instead.



Questions or comments, write to the
ClanLib mailing list.