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

# Class CL_StreamSoundProvider

Streamed soundprovider.
Contained in: global
Derived from: none
Derived by: CL_Streamed_MikModSample CL_Streamed_RawSample CL_Streamed_WaveSample CL_VorbisSoundProvider
Group: Sound (Audio Mixing)

#include <ClanLib/sound.h>

### public function member index:

### Construction:

``virtual`` | `~CL_StreamSoundProvider` | `()`;

### Operations:

``virtual` `CL_StreamSoundProvider_Session`*` | `begin_session` | `()`;
``virtual` `void`` | `end_session` | `(`CL_StreamSoundProvider_Session`* `session`)`;

## Description:

Interface to streamed sound sources. Used by the CL_SoundBuffer class to start and stop playback.

## Function Member Descriptions:

CL_StreamSoundProvider::begin_session - Called by CL_SoundBuffer when a new session starts.
``virtual` `CL_StreamSoundProvider_Session`*` `begin_session` `()`;

> Returns - The soundbuffer session to be attached to the newly
> Returns - started session.

CL_StreamSoundProvider::end_session - Called by CL_SoundBuffer when a session has finished. After this call,
CL_SoundBuffer will not access the session anymore. It can safely be deleted here (and in most cases should be delete here).
``virtual` `void`` `end_session` `(`CL_StreamSoundProvider_Session`* `session`)`;

CL_StreamSoundProvider::~CL_StreamSoundProvider - Stream Sound Provider Destructor
``virtual`` `~CL_StreamSoundProvider` `()`;