Async
0.18.0
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
include
AsyncAudioFilter.h
Go to the documentation of this file.
1
28
#ifndef ASYNC_AUDIO_FILTER_INCLUDED
29
#define ASYNC_AUDIO_FILTER_INCLUDED
30
31
32
/****************************************************************************
33
*
34
* System Includes
35
*
36
****************************************************************************/
37
38
#include <string>
39
40
41
/****************************************************************************
42
*
43
* Project Includes
44
*
45
****************************************************************************/
46
47
48
49
/****************************************************************************
50
*
51
* Local Includes
52
*
53
****************************************************************************/
54
55
#include <
AsyncAudioProcessor.h
>
56
57
58
59
/****************************************************************************
60
*
61
* Forward declarations
62
*
63
****************************************************************************/
64
65
66
67
/****************************************************************************
68
*
69
* Namespace
70
*
71
****************************************************************************/
72
73
namespace
Async
74
{
75
76
77
/****************************************************************************
78
*
79
* Forward declarations of classes inside of the declared namespace
80
*
81
****************************************************************************/
82
83
class
FidVars;
84
85
86
/****************************************************************************
87
*
88
* Defines & typedefs
89
*
90
****************************************************************************/
91
92
93
94
/****************************************************************************
95
*
96
* Exported Global Variables
97
*
98
****************************************************************************/
99
100
101
102
/****************************************************************************
103
*
104
* Class definitions
105
*
106
****************************************************************************/
107
113
class
AudioFilter
:
public
AudioProcessor
114
{
115
public
:
121
explicit
AudioFilter
(
const
std::string &filter_spec,
122
int
sample_rate = INTERNAL_SAMPLE_RATE);
123
127
~AudioFilter
(
void
);
128
133
void
setOutputGain
(
float
gain) { output_gain = gain; }
134
138
void
reset
(
void
);
139
140
141
protected
:
153
void
processSamples
(
float
*dest,
const
float
*src,
int
count);
154
155
156
private
:
157
FidVars *fv;
158
float
output_gain;
159
160
AudioFilter
(
const
AudioFilter
&);
161
AudioFilter
& operator=(
const
AudioFilter
&);
162
163
};
/* class AudioFilter */
164
165
166
}
/* namespace */
167
168
#endif
/* ASYNC_AUDIO_FILTER_INCLUDED */
169
170
171
172
/*
173
* This file has not been truncated
174
*/
175
Generated by
1.8.4