kwave  18.07.70
Normalizer.h
Go to the documentation of this file.
1 /***************************************************************************
2  Normalizer - simple normalizer with limiter
3  -------------------
4  begin : Sat May 09 2009
5  copyright : (C) 2009 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7 
8  limiter function : (C) 1999-2005 Chris Vaill <chrisvaill at gmail>
9  taken from "normalize-0.7.7"
10  ***************************************************************************/
11 
12 /***************************************************************************
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * *
19  ***************************************************************************/
20 
21 #ifndef NORMALIZER_H
22 #define NORMALIZER_H
23 
24 #include "config.h"
25 
26 #include <QObject>
27 #include <QVariant>
28 
29 #include "libkwave/SampleArray.h"
30 #include "libkwave/SampleSource.h"
31 
32 namespace Kwave
33 {
35  {
36  Q_OBJECT
37  public:
38 
40  Normalizer();
41 
43  virtual ~Normalizer() Q_DECL_OVERRIDE;
44 
46  virtual void goOn() Q_DECL_OVERRIDE;
47 
48  signals:
49 
51  void output(Kwave::SampleArray data);
52 
53  public slots:
54 
56  void input(Kwave::SampleArray data);
57 
61  void setGain(const QVariant g);
62 
66  void setLimiterLevel(const QVariant l);
67 
68  private:
69 
72 
74  double m_gain;
75 
77  double m_limit;
78 
79  };
80 }
81 
82 #endif /* NORMALIZER_H */
83 
84 //***************************************************************************
85 //***************************************************************************
Kwave::SampleArray m_buffer
Definition: Normalizer.h:71
Definition: App.h:33
void input(Kwave::SampleArray data)
Definition: Normalizer.cpp:73
virtual void goOn() Q_DECL_OVERRIDE
Definition: Normalizer.cpp:41
void setLimiterLevel(const QVariant l)
Definition: Normalizer.cpp:95
virtual ~Normalizer() Q_DECL_OVERRIDE
Definition: Normalizer.cpp:36
void output(Kwave::SampleArray data)
void setGain(const QVariant g)
Definition: Normalizer.cpp:89