aubio
0.3.2
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
src
sample.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2003 Paul Brossier
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18
*/
19
20
#ifndef _SAMPLE_H
21
#define _SAMPLE_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
38
typedef
struct
_fvec_t
fvec_t
;
40
typedef
struct
_cvec_t
cvec_t
;
42
struct
_fvec_t
{
43
uint_t
length
;
44
uint_t
channels
;
45
smpl_t
**
data
;
46
};
48
struct
_cvec_t
{
49
uint_t
length
;
50
uint_t
channels
;
51
smpl_t
**
norm
;
52
smpl_t
**
phas
;
53
};
60
fvec_t
*
new_fvec
(
uint_t
length,
uint_t
channels);
66
void
del_fvec
(
fvec_t
*s);
78
smpl_t
fvec_read_sample
(
fvec_t
*s,
uint_t
channel,
uint_t
position);
91
void
fvec_write_sample
(
fvec_t
*s,
smpl_t
data,
uint_t
channel,
uint_t
position);
102
smpl_t
*
fvec_get_channel
(
fvec_t
*s,
uint_t
channel);
114
void
fvec_put_channel
(
fvec_t
*s,
smpl_t
* data,
uint_t
channel);
124
smpl_t
**
fvec_get_data
(
fvec_t
*s);
125
138
cvec_t
*
new_cvec
(
uint_t
length,
uint_t
channels);
144
void
del_cvec
(
cvec_t
*s);
157
void
cvec_write_norm
(
cvec_t
*s,
smpl_t
data,
uint_t
channel,
uint_t
position);
170
void
cvec_write_phas
(
cvec_t
*s,
smpl_t
data,
uint_t
channel,
uint_t
position);
182
smpl_t
cvec_read_norm
(
cvec_t
*s,
uint_t
channel,
uint_t
position);
194
smpl_t
cvec_read_phas
(
cvec_t
*s,
uint_t
channel,
uint_t
position);
206
void
cvec_put_norm_channel
(
cvec_t
*s,
smpl_t
* data,
uint_t
channel);
218
void
cvec_put_phas_channel
(
cvec_t
*s,
smpl_t
* data,
uint_t
channel);
229
smpl_t
*
cvec_get_norm_channel
(
cvec_t
*s,
uint_t
channel);
240
smpl_t
*
cvec_get_phas_channel
(
cvec_t
*s,
uint_t
channel);
250
smpl_t
**
cvec_get_norm
(
cvec_t
*s);
260
smpl_t
**
cvec_get_phas
(
cvec_t
*s);
261
262
#ifdef __cplusplus
263
}
264
#endif
265
266
#endif
/* _SAMPLE_H */
Generated on Fri Oct 31 2014 22:43:05 for aubio by
1.8.1.2