kwave  18.07.70
Delay.h
Go to the documentation of this file.
1 /***************************************************************************
2  Delay.h - delay line for small delays
3  -------------------
4  begin : Sun Nov 11 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 DELAY_H
19 #define DELAY_H
20 
21 #include "config.h"
22 
23 #include <QtGlobal>
24 #include <QObject>
25 #include <QVariant>
26 
27 #include "libkwave/SampleArray.h"
28 #include "libkwave/SampleFIFO.h"
29 #include "libkwave/SampleSource.h"
30 
31 namespace Kwave
32 {
33 
34  class Q_DECL_EXPORT Delay: public Kwave::SampleSource
35  {
36  Q_OBJECT
37  public:
39  Delay();
40 
42  virtual ~Delay() Q_DECL_OVERRIDE;
43 
45  virtual void goOn() Q_DECL_OVERRIDE;
46 
47  signals:
49  void output(Kwave::SampleArray data);
50 
51  public slots:
52 
54  void input(Kwave::SampleArray data);
55 
60  void setDelay(const QVariant &d);
61 
62  private:
63 
66 
69 
71  unsigned int m_delay;
72  };
73 }
74 
75 #endif /* DELAY_H */
76 
77 //***************************************************************************
78 //***************************************************************************
unsigned int m_delay
Definition: Delay.h:71
Definition: App.h:33
Kwave::SampleFIFO m_fifo
Definition: Delay.h:65
Kwave::SampleArray m_out_buffer
Definition: Delay.h:68