kwave  18.07.70
NoiseGenerator.h
Go to the documentation of this file.
1 /*************************************************************************
2  NoiseGenerator.h - simple noise generator, implemented as SampleSource
3  -------------------
4  begin : Sun Oct 07 2007
5  copyright : (C) 2007 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef NOISE_GENERATOR_H
19 #define NOISE_GENERATOR_H
20 
21 #include "config.h"
22 
23 #include <QObject>
24 #include <QVariant>
25 
26 #include "libkwave/SampleArray.h"
27 #include "libkwave/SampleSource.h"
28 
29 namespace Kwave
30 {
32  {
33  Q_OBJECT
34  public:
35 
37  explicit NoiseGenerator(QObject *parent = Q_NULLPTR);
38 
40  virtual ~NoiseGenerator() Q_DECL_OVERRIDE;
41 
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 setNoiseLevel(const QVariant fc);
62 
63  private:
64 
67 
69  double m_noise_level;
70 
71  };
72 }
73 
74 #endif /* NOISE_GENERATOR_H */
75 
76 //***************************************************************************
77 //***************************************************************************
Definition: App.h:33
virtual ~NoiseGenerator() Q_DECL_OVERRIDE
void output(Kwave::SampleArray data)
NoiseGenerator(QObject *parent=Q_NULLPTR)
void setNoiseLevel(const QVariant fc)
void input(Kwave::SampleArray data)
virtual void goOn() Q_DECL_OVERRIDE
Kwave::SampleArray m_buffer