Ardour
9.0-pre0-582-g084a23a80d
resampler.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
//
3
// Copyright (C) 2006-2012 Fons Adriaensen <fons@linuxaudio.org>
4
//
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program. If not, see <http://www.gnu.org/licenses/>.
17
//
18
// ----------------------------------------------------------------------------
19
20
21
#ifndef _ZITA_RESAMPLER_H_
22
#define _ZITA_RESAMPLER_H_
23
24
#include "
zita-resampler/zresampler_visibility.h
"
25
#include "
zita-resampler/resampler-table.h
"
26
27
namespace
ArdourZita
{
28
29
class
LIBZRESAMPLER_API
Resampler
30
{
31
32
public
:
33
34
Resampler
(
void
);
35
~Resampler
(
void
);
36
37
int
setup
(
unsigned
int
fs_inp,
38
unsigned
int
fs_out,
39
unsigned
int
nchan,
40
unsigned
int
hlen);
41
42
int
setup
(
unsigned
int
fs_inp,
43
unsigned
int
fs_out,
44
unsigned
int
nchan,
45
unsigned
int
hlen,
46
double
frel);
47
48
void
clear
(
void
);
49
int
reset
(
void
);
50
int
nchan
(
void
)
const
{
return
_nchan; }
51
int
inpsize
(
void
)
const
;
52
double
inpdist
(
void
)
const
;
53
int
process
(
void
);
54
55
unsigned
int
inp_count
;
56
unsigned
int
out_count
;
57
float
*
inp_data
;
58
float
*
out_data
;
59
void
*
inp_list
;
60
void
*
out_list
;
61
62
private
:
63
64
Resampler_table
*
_table
;
65
unsigned
int
_nchan
;
66
unsigned
int
_inmax
;
67
unsigned
int
_index
;
68
unsigned
int
_nread
;
69
unsigned
int
_nzero
;
70
unsigned
int
_phase
;
71
unsigned
int
_pstep
;
72
float
*
_buff
;
73
void
*_dummy [8];
74
};
75
76
};
77
78
#endif
ArdourZita::Resampler_table
Definition:
resampler-table.h:45
ArdourZita::Resampler
Definition:
resampler.h:30
ArdourZita::Resampler::_nchan
unsigned int _nchan
Definition:
resampler.h:65
ArdourZita::Resampler::reset
int reset(void)
ArdourZita::Resampler::_buff
float * _buff
Definition:
resampler.h:72
ArdourZita::Resampler::_phase
unsigned int _phase
Definition:
resampler.h:70
ArdourZita::Resampler::process
int process(void)
ArdourZita::Resampler::out_list
void * out_list
Definition:
resampler.h:60
ArdourZita::Resampler::inpsize
int inpsize(void) const
ArdourZita::Resampler::nchan
int nchan(void) const
Definition:
resampler.h:50
ArdourZita::Resampler::_table
Resampler_table * _table
Definition:
resampler.h:64
ArdourZita::Resampler::_index
unsigned int _index
Definition:
resampler.h:67
ArdourZita::Resampler::~Resampler
~Resampler(void)
ArdourZita::Resampler::Resampler
Resampler(void)
ArdourZita::Resampler::setup
int setup(unsigned int fs_inp, unsigned int fs_out, unsigned int nchan, unsigned int hlen, double frel)
ArdourZita::Resampler::setup
int setup(unsigned int fs_inp, unsigned int fs_out, unsigned int nchan, unsigned int hlen)
ArdourZita::Resampler::_pstep
unsigned int _pstep
Definition:
resampler.h:71
ArdourZita::Resampler::out_data
float * out_data
Definition:
resampler.h:58
ArdourZita::Resampler::_inmax
unsigned int _inmax
Definition:
resampler.h:66
ArdourZita::Resampler::inp_count
unsigned int inp_count
Definition:
resampler.h:55
ArdourZita::Resampler::out_count
unsigned int out_count
Definition:
resampler.h:56
ArdourZita::Resampler::inpdist
double inpdist(void) const
ArdourZita::Resampler::inp_data
float * inp_data
Definition:
resampler.h:57
ArdourZita::Resampler::clear
void clear(void)
ArdourZita::Resampler::_nread
unsigned int _nread
Definition:
resampler.h:68
ArdourZita::Resampler::inp_list
void * inp_list
Definition:
resampler.h:59
ArdourZita::Resampler::_nzero
unsigned int _nzero
Definition:
resampler.h:69
ArdourZita
Definition:
zita-convolver.h:34
resampler-table.h
zresampler_visibility.h
LIBZRESAMPLER_API
#define LIBZRESAMPLER_API
Definition:
zresampler_visibility.h:25
libs
zita-resampler
zita-resampler
resampler.h
Generated on Wed Dec 25 2024 05:44:45 for Ardour by
1.9.1