Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_Sample_RawData

Static sample in a raw PCM format (no header in file).
Contained in: global
Derived from: CL_StaticSoundProvider
Derived by: none
Group: Sound (Sound Providers)

#include <ClanLib/sound.h>

### public function member index:
### Construction:
``static` `CL_SoundBuffer`*` | `create` | `(`unsigned` `char`* `sound_data`, `int` `data_size`, `int` `bytes_per_sample`, `bool` `stereo`, `int` `frequency`=22050)`;
`` | `CL_Sample_RawData` | `(`unsigned` `char`* `sound_data`, `int` `data_size`, `int` `bytes_per_sample`, `bool` `stereo`, `int` `frequency`=22050)`;
``virtual`` | `~CL_Sample_RawData` | `()`;
### Operations:
``virtual` `void`` | `lock` | `()`;
``virtual` `void`` | `unlock` | `()`;
### Attributes:
``virtual` `SoundFormat`` | `get_format` | `() `const``;
``virtual` `int`` | `data_size` | `() `const``;
``virtual` `void`*` | `get_data` | `() `const``;
``virtual` `int`` | `get_frequency` | `() `const``;
### private function member index:
### Implementation:
``void`` | `load_data` | `(`unsigned` `char`* `sound_data`, `int` `data_size`, `int` `bytes_per_sample`, `bool` `stereo`, `int` `frequency`=22050)`;

## Description:

## Function Member Descriptions:

CL_Sample_RawData::CL_Sample_RawData - Sample RawData Constructor
`` `CL_Sample_RawData``(`unsigned` `char`* `sound_data`, `int` `data_size`, `int` `bytes_per_sample`, `bool` `stereo`, `int` `frequency`=22050)`;

CL_Sample_RawData::create - Create
``static` `CL_SoundBuffer`*` `create``(`unsigned` `char`* `sound_data`, `int` `data_size`, `int` `bytes_per_sample`, `bool` `stereo`, `int` `frequency`=22050)`;

CL_Sample_RawData::data_size - Data size
``virtual` `int`` `data_size``() `const``;

CL_Sample_RawData::get_data - Get data
``virtual` `void`*` `get_data``() `const``;

CL_Sample_RawData::get_format - Get format
``virtual` `SoundFormat`` `get_format``() `const``;

CL_Sample_RawData::get_frequency - Get frequency
``virtual` `int`` `get_frequency``() `const``;

CL_Sample_RawData::lock - Lock
``virtual` `void`` `lock``()`;

CL_Sample_RawData::unlock - Unlock
``virtual` `void`` `unlock``()`;

CL_Sample_RawData::~CL_Sample_RawData - Sample RawData Destructor
``virtual`` `~CL_Sample_RawData``()`;

## Variable Member Descriptions: