kwave  18.07.70
SampleEncoder.h
Go to the documentation of this file.
1 /*************************************************************************
2  SampleEncoder.h - encoder for converting samples to raw data
3  -------------------
4  begin : Tue Apr 18 2006
5  copyright : (C) 2006 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 SAMPLE_ENCODER_H
19 #define SAMPLE_ENCODER_H
20 
21 #include "config.h"
22 
23 #include <QtGlobal>
24 #include <QByteArray>
25 
26 #include "libkwave/Sample.h"
27 #include "libkwave/SampleArray.h"
28 
29 namespace Kwave
30 {
31  class Q_DECL_EXPORT SampleEncoder
32  {
33  public:
36 
38  virtual ~SampleEncoder() {}
39 
46  virtual void encode(const Kwave::SampleArray &samples,
47  unsigned int count,
48  QByteArray &raw_data) = 0;
49 
51  virtual unsigned int rawBytesPerSample() = 0;
52 
53  };
54 }
55 
56 #endif /* SAMPLE_ENCODER_H */
57 
58 //***************************************************************************
59 //***************************************************************************
Definition: App.h:33
virtual ~SampleEncoder()
Definition: SampleEncoder.h:38