![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
MPEG Sound Provider Session class
Contained in: global
Derived from:
CL_StreamSoundProvider_Session
MPEGAudioDrv
Derived by:
none
Group: MPEG (System)
#include <ClanLib/mpeg.h>
public function member index: |
||
Construction: |
||
CL_MPEGSoundProvider_Session | (const char* filename); | |
virtual | ~CL_MPEGSoundProvider_Session | (); |
Operations: |
||
virtual void | stop | (); |
virtual bool | play | (); |
virtual bool | set_position | (int pos); |
Attributes: |
||
virtual bool | eof | () const; |
virtual int | get_data | (void* data_ptr, int data_requested); |
virtual int | get_frequency | () const; |
virtual SoundFormat | get_format | () const; |
protected function member index: |
||
Implementation: |
||
virtual bool | Open | (MPEGAudioSpec* desired, MPEGAudioSpec* optained); |
virtual void | Close | (); |
virtual void | Pause | (bool enable); |
virtual void | Mix | (Uint8* dst, Uint8* src, Uint32 len, int volume); |
virtual void | Lock | (); |
virtual void | Unlock | (); |
virtual int | GetMaxVolume | (); |
virtual char* | GetError | (); |
Returns - True if end of input data. False otherwise.
data_ptr - Points to a buffer that should be filled with
sample data.
data_requested - Bytes of data requested.
Returns - Number of bytes actually filled with sample data.
Returns - The playback Sample format.
Returns - Playback frequency.
Returns - True for success. False otherwise.
pos - Position to seek to.
Returns - True for success. False otherwise.