00001 #ifndef header_soundbuffer_playback_dx 00002 #define header_soundbuffer_playback_dx 00003 00004 #include "Core/Sound/Generic/cardsoundbuffer_playback.h" 00005 00006 class CL_CardSoundBufferStatic_DX; 00007 class CL_CardSoundBuffer_Playback_DX : public CL_CardSoundBuffer_Playback 00008 { 00009 LPDIRECTSOUNDBUFFER buffer; 00010 CL_CardSoundBufferStatic_DX *parent_buffer; 00011 bool looping; 00012 void check_for_lost(); 00013 public: 00014 CL_CardSoundBuffer_Playback_DX(CL_CardSoundBufferStatic_DX *parent_buffer); 00015 virtual ~CL_CardSoundBuffer_Playback_DX(); 00016 00017 virtual int get_position(); 00018 virtual float get_position_relative(); 00019 00020 virtual bool set_position(int new_pos); 00021 virtual bool set_position_relative(float new_pos); 00022 00023 virtual int get_length(); // -1 if unknown 00024 00025 virtual int get_frequency(); 00026 virtual bool set_frequency(int new_freq); 00027 00028 virtual float get_volume(); 00029 virtual bool set_volume(float new_volume); 00030 00031 virtual float get_pan(); 00032 virtual bool set_pan(float new_pan); 00033 00034 virtual void play(); 00035 virtual void stop(); 00036 00037 virtual bool is_playing(); 00038 virtual void set_looping(bool loop); 00039 00040 virtual CL_SoundBuffer_Generic *get_owner(); 00041 }; 00042 00043 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001