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

CL_Sample Class Reference

clanSound="Sound Providers". More...

#include <static_provider_wave.h>

Inheritance diagram for CL_Sample:

Inheritance graph
[legend]
Collaboration diagram for CL_Sample:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Sample (const char *s_id, CL_InputSourceProvider *_provider)
virtual ~CL_Sample ()
virtual void lock ()
virtual void unlock ()
virtual SoundFormat get_format () const
virtual int data_size () const
 retval: The soundformat of the data stored.

virtual void* get_data () const
 retval: Size of data stored (in bytes).

virtual int get_frequency () const
 retval: A pointer to the data stored.


Static Public Methods

CL_SoundBuffercreate (const char *sample_id, CL_InputSourceProvider *provider)

Private Methods

void load_data ()

Private Attributes

CL_InputSourceProviderprovider
std::string sample_id
char* sample_data
SoundFormat sample_format
int sample_size
int sample_freq

Detailed Description

clanSound="Sound Providers".

Definition at line 27 of file static_provider_wave.h.


Constructor & Destructor Documentation

CL_Sample::CL_Sample ( const char * s_id,
CL_InputSourceProvider * _provider )
 

virtual CL_Sample::~CL_Sample ( ) [virtual]
 


Member Function Documentation

CL_SoundBuffer* CL_Sample::create ( const char * sample_id,
CL_InputSourceProvider * provider ) [static]
 

virtual int CL_Sample::data_size ( ) const [virtual]
 

retval: The soundformat of the data stored.

Reimplemented from CL_StaticSoundProvider.

virtual void* CL_Sample::get_data ( ) const [virtual]
 

retval: Size of data stored (in bytes).

Reimplemented from CL_StaticSoundProvider.

virtual SoundFormat CL_Sample::get_format ( ) const [virtual]
 

Reimplemented from CL_StaticSoundProvider.

virtual int CL_Sample::get_frequency ( ) const [virtual]
 

retval: A pointer to the data stored.

Reimplemented from CL_StaticSoundProvider.

void CL_Sample::load_data ( ) [private]
 

virtual void CL_Sample::lock ( ) [virtual]
 

Reimplemented from CL_StaticSoundProvider.

virtual void CL_Sample::unlock ( ) [virtual]
 

Reimplemented from CL_StaticSoundProvider.


Member Data Documentation

CL_InputSourceProvider* CL_Sample::provider [private]
 

Definition at line 73 of file static_provider_wave.h.

char* CL_Sample::sample_data [private]
 

Definition at line 76 of file static_provider_wave.h.

SoundFormat CL_Sample::sample_format [private]
 

Definition at line 77 of file static_provider_wave.h.

int CL_Sample::sample_freq [private]
 

Definition at line 79 of file static_provider_wave.h.

std::string CL_Sample::sample_id [private]
 

Definition at line 74 of file static_provider_wave.h.

int CL_Sample::sample_size [private]
 

Definition at line 78 of file static_provider_wave.h.


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