CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Processing
Synthesis
OverlapAdd.hxx
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
3
* UNIVERSITAT POMPEU FABRA
4
*
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*
20
*/
21
22
#ifndef _OverlapAdd_
23
#define _OverlapAdd_
24
25
#include "
Array.hxx
"
26
#include "
Audio.hxx
"
27
#include "
DataTypes.hxx
"
28
#include "
DynamicType.hxx
"
29
#include "
Processing.hxx
"
30
#include "
Storage.hxx
"
31
32
#include "
OverlapAddConfig.hxx
"
33
#include "
AudioInPort.hxx
"
34
#include "
AudioOutPort.hxx
"
35
36
namespace
CLAM {
37
38
class
OverlapAdd;
39
40
/* Was:
41
For good results FrameSize should be the same as HopSize; and BufferSize should
42
be at least FrameSize+HopSize
43
*/
44
53
/* OverlapAddConfig moved to OverlapAddConfig.hxx */
54
55
63
class
OverlapAdd
:
public
Processing
64
{
65
public
:
66
67
OverlapAdd
(
const
OverlapAddConfig
&c=
OverlapAddConfig
());
68
~OverlapAdd
();
69
const
ProcessingConfig
&
GetConfig
()
const
{
return
mConfig
;}
70
71
/* do methods */
72
74
bool
Do
(
void
);
75
80
bool
Do
(
const
Audio
&in,
Audio
&out);
81
82
private
:
83
84
const
char
*GetClassName()
const
{
return
"OverlapAdd"
;}
85
89
bool
ConcreteConfigure(
const
ProcessingConfig&);
90
91
/* protected methods */
92
protected
:
93
OverlapAddConfig
mConfig
;
94
95
AudioInPort
mInput
;
96
AudioOutPort
mOutput
;
97
98
Audio
mTmp
;
99
};
100
}
//end of namespace CLAM
101
102
103
#endif // _OverlapAdd_
104
Generated by
1.8.1