00001 /* 00002 $Id: fadefilter.h,v 1.1 2001/03/06 15:09:12 mbn Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 */ 00014 00016 00017 #ifndef header_fadefilter 00018 #define header_fadefilter 00019 00020 #include "../soundfilter.h" 00021 00022 class CL_FadeFilter : public CL_SoundFilter 00023 { 00024 public: 00025 CL_FadeFilter(int initial_volume); 00026 virtual ~CL_FadeFilter(); 00027 00028 void fade_to_volume(int new_volume, int duration = 1000); 00029 00030 virtual void filter(int *data, int size); 00031 00032 private: 00033 CL_FadeFilter(const CL_FadeFilter ©) { return; } // disallow copy construction. 00034 class CL_FadeFilter_Generic *impl; 00035 }; 00036 00037 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001