kwave
18.07.70
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
f
h
i
l
m
o
p
r
s
t
u
w
y
z
Functions
Typedefs
Enumerations
+
Enumerator
a
b
c
f
i
l
o
p
r
s
u
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
i
l
m
p
q
r
s
t
x
z
Variables
Typedefs
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
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
:
40
CurveStreamAdapter
(
Kwave::Curve
&curve,
sample_index_t
length);
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
57
sample_index_t
m_position
;
58
60
sample_index_t
m_length
;
61
63
Kwave::Interpolation
&
m_interpolation
;
64
66
Kwave::SampleArray
m_buffer
;
67
68
};
69
70
}
71
#endif
/* CURVE_STREAM_ADAPTER_H */
72
73
//***************************************************************************
74
//***************************************************************************
Kwave::CurveStreamAdapter::m_interpolation
Kwave::Interpolation & m_interpolation
Definition:
CurveStreamAdapter.h:63
Kwave
Definition:
App.h:33
Kwave::Curve
Definition:
Curve.h:37
SampleSource.h
Kwave::CurveStreamAdapter
Definition:
CurveStreamAdapter.h:31
sample_index_t
quint64 sample_index_t
Definition:
Sample.h:28
Kwave::CurveStreamAdapter::m_length
sample_index_t m_length
Definition:
CurveStreamAdapter.h:60
Curve.h
Kwave::CurveStreamAdapter::m_position
sample_index_t m_position
Definition:
CurveStreamAdapter.h:57
Kwave::SampleArray
Definition:
SampleArray.h:36
Kwave::Interpolation
Definition:
Interpolation.h:47
Kwave::SampleSource
Definition:
SampleSource.h:31
Kwave::CurveStreamAdapter::m_buffer
Kwave::SampleArray m_buffer
Definition:
CurveStreamAdapter.h:66
libkwave
modules
CurveStreamAdapter.h
Generated on Sat Mar 24 2018 09:10:25 for kwave by
1.8.13