ClanSoft logo
ClanSoft logo

    CL_Streamed_WaveSample

Streamed sample in wave (.wav) format.

Parents: public CL_StreamSoundProvider

Description

This class providers playback support for wave (.wav) samples.

Unlike CL_Sample, 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 instead.

Class members

static CL_SoundBuffer *create(
        const char *filename,
        CL_InputSourceProvider *inputprovider = NULL,
        bool looped = false)
CL_Streamed_WaveSample( const char *filename, CL_InputSourceProvider *inputprovider = NULL, bool looped = false)
virtual ~CL_Streamed_WaveSample()
virtual CL_StreamSoundProvider_Session *begin_session()
virtual void end_session(CL_StreamSoundProvider_Session *session)

See Also

CL_Sample-The static wave sample provider.
CL_Sample_Raw-The static raw sample provider.
CL_Streamed_RawSample-The streamed raw sample provider.
CL_SoundBuffer-Sound playback class in ClanLib.
CL_StreamSoundProvider-Streamed sound provider interface.
CL_StaticSoundProvider-Static sound provider interface.

Back to index



This page was built using the Perceps documentation system.