00001 /* 00002 * OpenAL sound effect header 00003 * 00004 * This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns) 00005 * See "SoftPixelEngine.hpp" for license information. 00006 */ 00007 00008 #ifndef __SP_AUDIO_SOUNDEFFECT_OPENAL_H__ 00009 #define __SP_AUDIO_SOUNDEFFECT_OPENAL_H__ 00010 00011 00012 #include "Base/spStandard.hpp" 00013 00014 #ifdef SP_COMPILE_WITH_OPENAL 00015 00016 00017 #include "SoundSystem/spSoundEffect.hpp" 00018 00019 #include <AL/al.h> 00020 #include <AL/alc.h> 00021 00022 00023 namespace sp 00024 { 00025 namespace audio 00026 { 00027 00028 00029 class OpenALSoundEffect : public SoundEffect 00030 { 00031 00032 public: 00033 00034 OpenALSoundEffect(); 00035 ~OpenALSoundEffect(); 00036 00037 /* Functions */ 00038 00039 void setType(const ESoundEffectTypes Type); 00040 00041 void setupEffectPreset(const ESoundEffectPresets Preset); 00042 00043 private: 00044 00045 friend class OpenALSound; 00046 friend class OpenALSoundDevice; 00047 00048 /* Members */ 00049 00050 ALuint ALEffect_; 00051 00052 }; 00053 00054 00055 } // /namespace audio 00056 00057 } // /namespace sp 00058 00059 00060 #endif 00061 00062 #endif 00063 00064 00065 00066 // ================================================================================