diff options
author | Eugene Sandulenko | 2012-02-09 11:20:45 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2012-02-09 11:31:03 +0200 |
commit | 030e155eeb7f82dc89315dbefa43e09a411c6110 (patch) | |
tree | 3b941d9841735fcc9878ab0663406d6be7a025aa /audio/softsynth/mt32/FreeverbModel.h | |
parent | 06b52994619fb9a7ef9e54e50b5cc67d07f6a0a0 (diff) | |
download | scummvm-rg350-030e155eeb7f82dc89315dbefa43e09a411c6110.tar.gz scummvm-rg350-030e155eeb7f82dc89315dbefa43e09a411c6110.tar.bz2 scummvm-rg350-030e155eeb7f82dc89315dbefa43e09a411c6110.zip |
MT32: Update MT-32 emulator to latest Munt code
Several changes against original code were made. They were intentionally
kept to the minimum
Diffstat (limited to 'audio/softsynth/mt32/FreeverbModel.h')
-rw-r--r-- | audio/softsynth/mt32/FreeverbModel.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/audio/softsynth/mt32/FreeverbModel.h b/audio/softsynth/mt32/FreeverbModel.h new file mode 100644 index 0000000000..925b2dbf96 --- /dev/null +++ b/audio/softsynth/mt32/FreeverbModel.h @@ -0,0 +1,44 @@ +/* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Dean Beeler, Jerome Fisher + * Copyright (C) 2011 Dean Beeler, Jerome Fisher, Sergey V. Mikayev + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MT32EMU_FREEVERB_MODEL_H +#define MT32EMU_FREEVERB_MODEL_H + +class revmodel; + +namespace MT32Emu { + +class FreeverbModel : public ReverbModel { + revmodel *freeverb; + float scaleTuning; + float filtVal; + float wet; + Bit8u room; + float damp; +public: + FreeverbModel(float useScaleTuning, float useFiltVal, float useWet, Bit8u useRoom, float useDamp); + ~FreeverbModel(); + void open(unsigned int sampleRate); + void close(); + void setParameters(Bit8u time, Bit8u level); + void process(const float *inLeft, const float *inRight, float *outLeft, float *outRight, unsigned long numSamples); + bool isActive() const; +}; + +} + +#endif |