00001 00010 #ifndef __Platform_Win32_Sound_DSound_H__ 00011 #define __Platform_Win32_Sound_DSound_H__ 00012 00013 // Includes 00014 #include "Platform_Win32_Sound_Technology.h" 00015 00016 // Forward declares 00017 struct IDirectSound; 00018 00019 // Platform_Win32_Sound_DSound 00020 class Platform_Win32_Sound_DSound:public Platform_Win32_Sound_Technology 00021 { 00022 00023 public: 00024 Platform_Win32_Sound_DSound(struct HWND__* windowHandle); 00025 virtual ~Platform_Win32_Sound_DSound(); 00026 00027 virtual bool Setup(); 00028 00029 virtual void Update(); 00030 00031 virtual Platform_Sound_SoundStream* CreateSoundStream(int channels, int frequency, int bitsPerSample, int size); 00032 00033 private: 00034 struct HWND__* windowHandle_; 00035 void* dsoundDLL_; 00036 IDirectSound* directSound_; 00037 00038 }; 00039 00040 #endif /* __Platform_Win32_Sound_DSound_H__ */