Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Streamed_WaveSample Class Reference

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

#include <stream_provider_wave.h>

Inheritance diagram for CL_Streamed_WaveSample:

Inheritance graph
[legend]
Collaboration diagram for CL_Streamed_WaveSample:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Streamed_WaveSample (const char *filename, CL_InputSourceProvider *inputprovider=NULL, bool looped=false)
 param: filename - Filename of the wave file.param: inputprovider - Input source (datafile, regular file). If NULLparam: it defaults to a regular file.param: looped - True if the streamed should be looped (stream never ends).retval: The soundbuffer created.

virtual ~CL_Streamed_WaveSample ()
 param: filename - Filename of the raw PCM stream.param: frequency - Default playback frequency.param: inputprovider - Input source (datafile, regular file). If NULLparam: it defaults to a regular file.param: looped - True if the streamed should be looped (stream never ends).

virtual CL_StreamSoundProvider_Sessionbegin_session ()
virtual void end_session (CL_StreamSoundProvider_Session *session)
 retval: The soundbuffer session to be attached to the newlyretval: started session.


Static Public Methods

CL_SoundBuffercreate (const char *filename, CL_InputSourceProvider *inputprovider=NULL, bool looped=false)

Protected Attributes

std::string filename
CL_InputSourceProviderinputprovider
bool looped

Detailed Description

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

Definition at line 27 of file stream_provider_wave.h.


Constructor & Destructor Documentation

CL_Streamed_WaveSample::CL_Streamed_WaveSample ( const char * filename,
CL_InputSourceProvider * inputprovider = NULL,
bool looped = false )
 

param: filename - Filename of the wave file.param: inputprovider - Input source (datafile, regular file). If NULLparam: it defaults to a regular file.param: looped - True if the streamed should be looped (stream never ends).retval: The soundbuffer created.

CL_Streamed_WaveSample::~CL_Streamed_WaveSample ( ) [virtual]
 

param: filename - Filename of the raw PCM stream.param: frequency - Default playback frequency.param: inputprovider - Input source (datafile, regular file). If NULLparam: it defaults to a regular file.param: looped - True if the streamed should be looped (stream never ends).


Member Function Documentation

virtual CL_StreamSoundProvider_Session* CL_Streamed_WaveSample::begin_session ( ) [virtual]
 

Reimplemented from CL_StreamSoundProvider.

CL_SoundBuffer* CL_Streamed_WaveSample::create ( const char * filename,
CL_InputSourceProvider * inputprovider = NULL,
bool looped = false ) [static]
 

virtual void CL_Streamed_WaveSample::end_session ( CL_StreamSoundProvider_Session * session ) [virtual]
 

retval: The soundbuffer session to be attached to the newlyretval: started session.

Reimplemented from CL_StreamSoundProvider.


Member Data Documentation

std::string CL_Streamed_WaveSample::filename [protected]
 

Definition at line 45 of file stream_provider_wave.h.

CL_InputSourceProvider* CL_Streamed_WaveSample::inputprovider [protected]
 

Definition at line 46 of file stream_provider_wave.h.

bool CL_Streamed_WaveSample::looped [protected]
 

Definition at line 47 of file stream_provider_wave.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:30 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001