#include <mpeg_soundprovider.h>
Inheritance diagram for CL_MPEGSoundProvider_Session:


Public Methods | |
| CL_MPEGSoundProvider_Session (const char *filename) | |
| virtual | ~CL_MPEGSoundProvider_Session () |
| virtual bool | eof () const |
| 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 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 Methods | |
| virtual bool | Open (MPEGAudioSpec *desired, MPEGAudioSpec *optained) |
| retval: The playback Sample format. | |
| 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 () |
Private Attributes | |
| MPEG* | mpeg |
| MPEGAudioSpec | audiospec |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
retval: The playback Sample format.
|
|
|
|
|
|
|
|
|
Reimplemented from CL_StreamSoundProvider_Session. |
|
|
param: pos - Position to seek to.retval: True for success. False otherwise.
Reimplemented from CL_StreamSoundProvider_Session. |
|
|
retval: Playback frequency.
Reimplemented from CL_StreamSoundProvider_Session. |
|
|
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. |
|
|
Reimplemented from CL_StreamSoundProvider_Session. |
|
|
retval: True for success. False otherwise.
Reimplemented from CL_StreamSoundProvider_Session. |
|
|
retval: True if end of input data. False otherwise.
Reimplemented from CL_StreamSoundProvider_Session. |
|
|
Definition at line 85 of file mpeg_soundprovider.h. |
|
|
Definition at line 84 of file mpeg_soundprovider.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001