kwave  18.07.70
StreamWriter.h
Go to the documentation of this file.
1 /***************************************************************************
2  StreamWriter.h - adapter between writers and sample source
3  -------------------
4  begin : Sun Aug 23 2009
5  copyright : (C) 2009 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7 
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #ifndef STREAM_WRITER_H
20 #define STREAM_WRITER_H
21 
22 #include "config.h"
23 
24 #include <QtGlobal>
25 #include <QObject>
26 
27 #include "libkwave/Writer.h"
28 
29 namespace Kwave
30 {
31 
32  class SampleArray;
33  class Track;
34 
42  class Q_DECL_EXPORT StreamWriter: public Kwave::Writer
43  {
44  Q_OBJECT
45  public:
46 
50  StreamWriter();
51 
55  virtual ~StreamWriter() Q_DECL_OVERRIDE;
56 
68  virtual bool write(const Kwave::SampleArray &buffer,
69  unsigned int &count) Q_DECL_OVERRIDE;
70 
71  signals:
72 
74  void output(Kwave::SampleArray data);
75 
76  };
77 
78 }
79 
80 #endif /* STREAM_WRITER_H */
81 
82 //***************************************************************************
83 //***************************************************************************
Definition: App.h:33