jamie@1
|
1 /* libxtract feature extraction library
|
jamie@1
|
2 *
|
jamie@1
|
3 * Copyright (C) 2006 Jamie Bullock
|
jamie@1
|
4 *
|
jamie@1
|
5 * This program is free software; you can redistribute it and/or modify
|
jamie@1
|
6 * it under the terms of the GNU General Public License as published by
|
jamie@1
|
7 * the Free Software Foundation; either version 2 of the License, or
|
jamie@1
|
8 * (at your option) any later version.
|
jamie@1
|
9 *
|
jamie@1
|
10 * This program is distributed in the hope that it will be useful,
|
jamie@1
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
jamie@1
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
jamie@1
|
13 * GNU General Public License for more details.
|
jamie@1
|
14 *
|
jamie@1
|
15 * You should have received a copy of the GNU General Public License
|
jamie@1
|
16 * along with this program; if not, write to the Free Software
|
jamie@1
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
jamie@1
|
18 * USA.
|
jamie@1
|
19 */
|
jamie@1
|
20
|
jamie@1
|
21
|
jamie@1
|
22
|
jamie@2
|
23 /** \file xtract_delta.h: defines useful macros */
|
jamie@1
|
24
|
jamie@1
|
25 #ifndef XTRACT_MACROS
|
jamie@1
|
26 #define XTRACT_MACROS
|
jamie@1
|
27
|
jamie@1
|
28 #ifdef __cplusplus
|
jamie@1
|
29 extern "C" {
|
jamie@1
|
30 #endif
|
jamie@1
|
31
|
jamie@5
|
32 #include <stdio.h>
|
jamie@5
|
33
|
jamie@1
|
34 #define SQ(a) ((a) * (a))
|
jamie@1
|
35 #define MIN(a, b) ((a) < (b) ? (a) : (b))
|
jamie@1
|
36 #define MAX(a, b) ((a) > (b) ? (a) : (b))
|
jamie@34
|
37 #define NEEDS_FFTW printf("LibXtract must be compiled with fftw support to use this function.\n")
|
jamie@52
|
38 #define CHECK_q if(!q) q = 44100.f / N
|
jamie@1
|
39
|
jamie@45
|
40 #define VERY_SMALL_NUMBER 1e-20
|
jamie@45
|
41 #define LOG_LIMIT VERY_SMALL_NUMBER
|
jamie@45
|
42 #define VERY_BIG_NUMBER 1e20
|
jamie@45
|
43 #define SR_LIMIT 192000
|
jamie@45
|
44 #define BARK_BANDS 26
|
jamie@50
|
45 #define NONE 0
|
jamie@50
|
46 #define MAXARGS 4
|
jamie@50
|
47 #define MAX_NAME_LENGTH 64
|
jamie@50
|
48 #define MAX_AUTHOR_LENGTH 128
|
jamie@50
|
49 #define MAX_DESC_LENGTH 256
|
jamie@45
|
50
|
jamie@1
|
51 #ifdef __cplusplus
|
jamie@1
|
52 }
|
jamie@1
|
53 #endif
|
jamie@1
|
54
|
jamie@1
|
55 #endif
|