effect_al.h

Go to the documentation of this file.
00001 
00009 /* 
00010  * Copyright (C) 2008  by authors
00011  * 
00012  * This file is part of NEVRAX NEL.
00013  * NEVRAX NEL is free software: you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published
00015  * by the Free Software Foundation, either version 2 of the License,
00016  * or (at your option) any later version.
00017  * 
00018  * NEVRAX NEL is distributed in the hope that it will be useful, but
00019  * WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * General Public License for more details.
00022  * 
00023  * You should have received a copy of the GNU General Public License
00024  * along with NEVRAX NEL; if not, write to the Free Software
00025  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00026  * 02110-1301 USA.
00027  */
00028 
00029 #ifndef NLSOUND_EFFECT_AL_H
00030 #define NLSOUND_EFFECT_AL_H
00031 #include <nel/misc/types_nl.h>
00032 
00033 // STL includes
00034 
00035 // NeL includes
00036 
00037 // Project includes
00038 
00039 namespace NLSOUND {
00040     class CSoundDriverAL;
00041 
00048 class CEffectAL
00049 {
00050 protected:
00051     // outside pointers
00052     CSoundDriverAL *_SoundDriver;
00053     
00054     // instances
00055     ALuint _AlEffect;
00056     ALuint _AlAuxEffectSlot;
00057     
00058 public:
00059     CEffectAL(CSoundDriverAL *soundDriver, ALuint alEffect, ALuint alAuxEffectSlot);
00060     virtual ~CEffectAL();
00061     virtual void release();
00062     
00063     inline ALuint getAlEffect() { return _AlEffect; }
00064     inline ALuint getAuxEffectSlot() { return _AlAuxEffectSlot; }
00065     
00066 }; /* class CEffectAL */
00067 
00074 class CStandardReverbEffectAL : public IReverbEffect, public CEffectAL
00075 {
00076 public:
00077     CStandardReverbEffectAL(CSoundDriverAL *soundDriver, ALuint alEffect, ALuint alAuxEffectSlot);
00078     virtual ~CStandardReverbEffectAL();
00079     
00080     virtual void setEnvironment(const CEnvironment &environment = CEnvironment(), float roomSize = 100.0f);
00081     
00082 }; /* class CReverbEffectAL */
00083 
00084 #if EFX_CREATIVE_AVAILABLE
00085 
00092 class CCreativeReverbEffectAL : public IReverbEffect, public CEffectAL
00093 {
00094 public:
00095     CCreativeReverbEffectAL(CSoundDriverAL *soundDriver, ALuint alEffect, ALuint alAuxEffectSlot);
00096     virtual ~CCreativeReverbEffectAL();
00097     
00098     virtual void setEnvironment(const CEnvironment &environment = CEnvironment(), float roomSize = 100.0f);
00099     
00100 }; /* class CReverbEffectAL */
00101 
00102 #endif /* #if EFX_CREATIVE_AVAILABLE */
00103 
00104 } /* namespace NLSOUND */
00105 
00106 #endif /* #ifndef NLSOUND_EFFECT_AL_H */
00107 
00108 /* end of file */

Generated on Thu Jan 7 08:26:37 2010 for NeL by  doxygen 1.6.1