/* * CStaticSoundBufferクラスのインタフェースを記述するためのファイルです。 * Author: AKIYAMA Kouhei * Created: 2002-10-02 */ #ifndef SSLIB2_STATIC_SOUND_BUFFER_H_INCLUDED #define SSLIB2_STATIC_SOUND_BUFFER_H_INCLUDED #ifndef DIRECTSOUND_VERSION # define DIRECTSOUND_VERSION 0x0300 //←変更したいならコンパイルオプション/Dで指定すること #endif #include #include #include #include "SoundBuffer.h" namespace sslib2 { class CStaticSoundBuffer : public CSoundBuffer { private: CComPtr m_pStaticBuffer;//DSスタティックバッファ bool m_defaultLoopFlag; public: CStaticSoundBuffer(); virtual ~CStaticSoundBuffer(); bool Create(const CComPtr &pds, boost::shared_ptr reader); //CSoundBufferインタフェース virtual bool Play(void); virtual bool Stop(void); virtual bool IsPlaying(void); virtual bool SetVolume(LONG vol); virtual bool GetVolume(LONG *vol); }; } #endif