kwave  18.07.70
CurveStreamAdapter.h
Go to the documentation of this file.
1 /***************************************************************************
2  CurveStreamAdapter.h - converter from Curve to a Kwave::SampleSource
3  -------------------
4  begin : Thu Nov 01 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 CURVE_STREAM_ADAPTER_H
19 #define CURVE_STREAM_ADAPTER_H
20 
21 #include "config.h"
22 
23 #include <QtGlobal>
24 
25 #include "libkwave/Curve.h"
26 #include "libkwave/SampleSource.h"
27 
28 namespace Kwave
29 {
30 
31  class Q_DECL_EXPORT CurveStreamAdapter: public Kwave::SampleSource
32  {
33  Q_OBJECT
34  public:
41 
43  virtual ~CurveStreamAdapter() Q_DECL_OVERRIDE;
44 
46  virtual void goOn() Q_DECL_OVERRIDE;
47 
48 
49  signals:
50 
52  void output(Kwave::SampleArray data);
53 
54  private:
55 
58 
61 
64 
67 
68  };
69 
70 }
71 #endif /* CURVE_STREAM_ADAPTER_H */
72 
73 //***************************************************************************
74 //***************************************************************************
Kwave::Interpolation & m_interpolation
Definition: App.h:33
quint64 sample_index_t
Definition: Sample.h:28
Kwave::SampleArray m_buffer