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
:
35
SampleEncoder
() {}
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
//***************************************************************************
Kwave
Definition:
App.h:33
Kwave::SampleEncoder::SampleEncoder
SampleEncoder()
Definition:
SampleEncoder.h:35
Kwave::SampleEncoder
Definition:
SampleEncoder.h:31
Sample.h
SampleArray.h
Kwave::SampleEncoder::~SampleEncoder
virtual ~SampleEncoder()
Definition:
SampleEncoder.h:38
Kwave::SampleArray
Definition:
SampleArray.h:36
libkwave
SampleEncoder.h
Generated on Sat Mar 24 2018 09:10:25 for kwave by
1.8.13