kwave  18.07.70
SampleDecoder.h
Go to the documentation of this file.
1 /*************************************************************************
2  SampleDecoder.h - decoder for converting raw data to samples
3  -------------------
4  begin : Sat Nov 01 2003
5  copyright : (C) 2003 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_DECODER_H
19 #define SAMPLE_DECODER_H
20 
21 #include "config.h"
22 
23 #include <QByteArray>
24 
25 #include "libkwave/Sample.h"
26 #include "libkwave/SampleArray.h"
27 
28 namespace Kwave
29 {
31  {
32  public:
35 
37  virtual ~SampleDecoder() {}
38 
46  virtual void decode(QByteArray &raw_data,
47  Kwave::SampleArray &decoded) = 0;
48 
50  virtual unsigned int rawBytesPerSample() = 0;
51 
52  };
53 }
54 
55 #endif /* SAMPLE_DECODER_H */
56 
57 //***************************************************************************
58 //***************************************************************************
Definition: App.h:33
virtual unsigned int rawBytesPerSample()=0
virtual ~SampleDecoder()
Definition: SampleDecoder.h:37
virtual void decode(QByteArray &raw_data, Kwave::SampleArray &decoded)=0