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

CL_Streamed_RawSample_Session Class Reference

#include <stream_provider_raw.h>

Inheritance diagram for CL_Streamed_RawSample_Session:

Inheritance graph
[legend]
Collaboration diagram for CL_Streamed_RawSample_Session:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Streamed_RawSample_Session (CL_InputSource *input, SoundFormat format, int frequency, bool looped)
virtual ~CL_Streamed_RawSample_Session ()
virtual void stop ()
 retval: True if end of input data. False otherwise.

virtual bool play ()
virtual bool set_position (int pos)
 retval: True for success. False otherwise.

virtual bool eof () const
virtual int get_data (void *data_ptr, int data_requested)
 param: pos - Position to seek to.retval: True for success. False otherwise.

virtual int get_frequency () const
 param: data_ptr - Points to a buffer that should be filled withparam: sample data.param: data_requested - Bytes of data requested.retval: Number of bytes actually filled with sample data.

virtual SoundFormat get_format () const
 retval: Playback frequency.


Protected Attributes

CL_InputSourceinput
SoundFormat sample_format
int sample_size
int sample_freq
int sample_left
bool looped

Constructor & Destructor Documentation

CL_Streamed_RawSample_Session::CL_Streamed_RawSample_Session ( CL_InputSource * input,
SoundFormat format,
int frequency,
bool looped )
 

virtual CL_Streamed_RawSample_Session::~CL_Streamed_RawSample_Session ( ) [virtual]
 


Member Function Documentation

virtual bool CL_Streamed_RawSample_Session::eof ( ) const [virtual]
 

Reimplemented from CL_StreamSoundProvider_Session.

virtual int CL_Streamed_RawSample_Session::get_data ( void * data_ptr,
int data_requested ) [virtual]
 

param: pos - Position to seek to.retval: True for success. False otherwise.

Reimplemented from CL_StreamSoundProvider_Session.

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

retval: Playback frequency.

Reimplemented from CL_StreamSoundProvider_Session.

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

param: data_ptr - Points to a buffer that should be filled withparam: sample data.param: data_requested - Bytes of data requested.retval: Number of bytes actually filled with sample data.

Reimplemented from CL_StreamSoundProvider_Session.

bool CL_Streamed_RawSample_Session::play ( ) [inline, virtual]
 

Reimplemented from CL_StreamSoundProvider_Session.

Definition at line 111 of file stream_provider_raw.h.

bool CL_Streamed_RawSample_Session::set_position ( int pos ) [inline, virtual]
 

retval: True for success. False otherwise.

Reimplemented from CL_StreamSoundProvider_Session.

Definition at line 112 of file stream_provider_raw.h.

void CL_Streamed_RawSample_Session::stop ( ) [inline, virtual]
 

retval: True if end of input data. False otherwise.

Reimplemented from CL_StreamSoundProvider_Session.

Definition at line 110 of file stream_provider_raw.h.


Member Data Documentation

CL_InputSource* CL_Streamed_RawSample_Session::input [protected]
 

Definition at line 93 of file stream_provider_raw.h.

bool CL_Streamed_RawSample_Session::looped [protected]
 

Definition at line 99 of file stream_provider_raw.h.

SoundFormat CL_Streamed_RawSample_Session::sample_format [protected]
 

Definition at line 95 of file stream_provider_raw.h.

int CL_Streamed_RawSample_Session::sample_freq [protected]
 

Definition at line 97 of file stream_provider_raw.h.

int CL_Streamed_RawSample_Session::sample_left [protected]
 

Definition at line 98 of file stream_provider_raw.h.

int CL_Streamed_RawSample_Session::sample_size [protected]
 

Definition at line 96 of file stream_provider_raw.h.


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