Platform_Win32_Sound.h
Go to the documentation of this file.00001 00010 #ifndef __Platform_Win32_Sound_H__ 00011 #define __Platform_Win32_Sound_H__ 00012 00013 // Includes 00014 #include "Platform_Sound.h" 00015 00016 // Forward declares 00017 class Platform_Win32_OS; 00018 class Platform_Win32_Sound_Technology; 00019 00020 // Platform_Win32_Sound 00021 class Platform_Win32_Sound:public Platform_Sound,PlatformEventListener 00022 { 00023 00024 public: 00025 Platform_Win32_Sound(Platform_Win32_OS* os); 00026 virtual ~Platform_Win32_Sound(); 00027 00028 virtual void OnOsYield(); 00029 00030 virtual Platform_Sound_SoundStream* CreateSoundStream(int channels, int frequency, int bitsPerSample, int size); 00031 00032 private: 00033 enum Technology 00034 { 00035 Technology_DSound, 00036 Technology_WMM, 00037 Technology_NoSound, 00038 Technology_Undefined, 00039 }; 00040 00041 void SetTechnology( 00042 Technology technology 00043 ); 00044 00045 void DowngradeTechnology(); 00046 00047 private: 00048 struct HWND__* windowHandle_; 00049 Technology technology_; 00050 Platform_Win32_Sound_Technology* technologyInstance_; 00051 }; 00052 00053 #endif /* __Platform_Win32_SOUND_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
