00001 /* 00002 $Id: cardplayback_be.h,v 1.1 2001/03/06 15:09:23 mbn Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 */ 00014 00015 #ifndef header_cardplayback_be 00016 #define header_cardplayback_be 00017 00018 #include "../Generic/cardsession_manager.h" 00019 #include "soundcard_be.h" 00020 00021 class CL_CardPlayback_Be : public CL_CardSoundBuffer_Playback 00022 { 00023 protected: 00024 BSimpleGameSound* soundbuffer; 00025 00026 public: 00027 CL_CardPlayback_Be(BSimpleGameSound* buffer); 00028 virtual ~CL_CardPlayback_Be(); 00029 00030 // Functions inherited from Generic: 00031 // --------------------------------- 00032 virtual int get_position(); 00033 virtual float get_position_relative(); 00034 00035 virtual bool set_position(int new_pos); 00036 virtual bool set_position_relative(float new_pos); 00037 00038 virtual int get_length(); // -1 if unknown 00039 00040 virtual int get_frequency(); 00041 virtual bool set_frequency(int new_freq); 00042 00043 virtual float get_volume(); 00044 virtual bool set_volume(float new_volume); 00045 00046 virtual float get_pan(); 00047 virtual bool set_pan(float new_pan); 00048 00049 virtual CL_SoundPlayBackDesc *add_playback_desc(CL_SoundPlayBackDesc *desc); 00050 virtual bool remove_playback_desc(CL_SoundPlayBackDesc *desc); 00051 00052 virtual void play(); 00053 virtual void stop(); 00054 00055 virtual bool is_playing(); 00056 }; 00057 00058 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001