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

CL_Sample_RawData Class Reference

clanSound="Sound Providers". More...

#include <static_provider_raw.h>

Inheritance diagram for CL_Sample_RawData:

Inheritance graph
[legend]
Collaboration diagram for CL_Sample_RawData:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Sample_RawData (unsigned char *sound_data, int data_size, int bytes_per_sample, bool stereo, int frequency=22050)
virtual ~CL_Sample_RawData ()
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 (unsigned char *sound_data, int data_size, int bytes_per_sample, bool stereo, int frequency=22050)

Private Methods

void load_data (unsigned char *sound_data, int data_size, int bytes_per_sample, bool stereo, int frequency=22050)

Private Attributes

unsigned 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_raw.h.


Constructor & Destructor Documentation

CL_Sample_RawData::CL_Sample_RawData ( unsigned char * sound_data,
int data_size,
int bytes_per_sample,
bool stereo,
int frequency = 22050 ) [inline]
 

Definition at line 48 of file static_provider_raw.h.

Referenced by create().

CL_Sample_RawData::~CL_Sample_RawData ( ) [inline, virtual]
 

Definition at line 63 of file static_provider_raw.h.


Member Function Documentation

CL_SoundBuffer* CL_Sample_RawData::create ( unsigned char * sound_data,
int data_size,
int bytes_per_sample,
bool stereo,
int frequency = 22050 ) [inline, static]
 

Definition at line 31 of file static_provider_raw.h.

int CL_Sample_RawData::data_size ( ) const [inline, virtual]
 

retval: The soundformat of the data stored.

Reimplemented from CL_StaticSoundProvider.

Definition at line 84 of file static_provider_raw.h.

void * CL_Sample_RawData::get_data ( ) const [inline, virtual]
 

retval: Size of data stored (in bytes).

Reimplemented from CL_StaticSoundProvider.

Definition at line 89 of file static_provider_raw.h.

SoundFormat CL_Sample_RawData::get_format ( ) const [inline, virtual]
 

Reimplemented from CL_StaticSoundProvider.

Definition at line 79 of file static_provider_raw.h.

int CL_Sample_RawData::get_frequency ( ) const [inline, virtual]
 

retval: A pointer to the data stored.

Reimplemented from CL_StaticSoundProvider.

Definition at line 94 of file static_provider_raw.h.

void CL_Sample_RawData::load_data ( unsigned char * sound_data,
int data_size,
int bytes_per_sample,
bool stereo,
int frequency = 22050 ) [inline, private]
 

Definition at line 113 of file static_provider_raw.h.

Referenced by CL_Sample_RawData().

void CL_Sample_RawData::lock ( ) [inline, virtual]
 

Reimplemented from CL_StaticSoundProvider.

Definition at line 68 of file static_provider_raw.h.

void CL_Sample_RawData::unlock ( ) [inline, virtual]
 

Reimplemented from CL_StaticSoundProvider.

Definition at line 73 of file static_provider_raw.h.


Member Data Documentation

unsigned char* CL_Sample_RawData::sample_data [private]
 

Definition at line 108 of file static_provider_raw.h.

SoundFormat CL_Sample_RawData::sample_format [private]
 

Definition at line 109 of file static_provider_raw.h.

int CL_Sample_RawData::sample_freq [private]
 

Definition at line 111 of file static_provider_raw.h.

int CL_Sample_RawData::sample_size [private]
 

Definition at line 110 of file static_provider_raw.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