1 /**
2  *  Impulse Response Processor model implementation
3  *
4  *  Copyright (C) 2006-2018 Teru Kamogashira
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20 
_FV3_(irmodel2zlm)21 class _FV3_(irmodel2zlm) : public _FV3_(irmodel2m)
22 {
23  public:
24   _FV3_(irmodel2zlm)();
25   virtual _FV3_(~irmodel2zlm)();
26   virtual void loadImpulse(const _fv3_float_t * inputL, long size)
27     throw(std::bad_alloc);
28   virtual void unloadImpulse();
29   virtual void processreplace(_fv3_float_t *inputL, long numsamples);
30   virtual void mute();
31 
32  protected:
33   void processZL(_fv3_float_t *inputL, _fv3_float_t *outputL, long numsamples);
34   long ZLstart;
35   _FV3_(slot) zlFrameSlot, zlOnlySlot;
36 
37  private:
38   _FV3_(irmodel2zlm)(const _FV3_(irmodel2zlm)& x);
39   _FV3_(irmodel2zlm)& operator=(const _FV3_(irmodel2zlm)& x);
40 };
41 
_FV3_(irmodel2zl)42 class _FV3_(irmodel2zl) : public _FV3_(irmodel2)
43 {
44  public:
45   _FV3_(irmodel2zl)();
46   virtual _FV3_(~irmodel2zl)();
47   virtual void loadImpulse(const _fv3_float_t * inputL, const _fv3_float_t * inputR, long size)
48     throw(std::bad_alloc);
49 
50  private:
51   _FV3_(irmodel2zl)(const _FV3_(irmodel2zl)& x);
52   _FV3_(irmodel2zl)& operator=(const _FV3_(irmodel2zl)& x);
53 };
54