38
38
#ifndef SPEEX_VERSION
39
#define SPEEX_MAJOR_VERSION 1
40
#define SPEEX_MINOR_VERSION 1
41
#define SPEEX_MICRO_VERSION 6
42
#define SPEEX_EXTRA_VERSION ""
43
#define SPEEX_VERSION "speex-1.1.6"
39
#define SPEEX_MAJOR_VERSION 1 /**< Major Speex version. */
40
#define SPEEX_MINOR_VERSION 1 /**< Minor Speex version. */
41
#define SPEEX_MICRO_VERSION 11 /**< Micro Speex version. */
42
#define SPEEX_EXTRA_VERSION ".1" /**< Extra Speex version. */
43
#define SPEEX_VERSION "speex-1.1.11.1" /**< Speex version string. */
49
/** Print a named vector to stdout */
49
50
void print_vec(float *vec, int len, char *name);
52
unsigned int be_int(unsigned int i);
53
unsigned int le_int(unsigned int i);
56
unsigned short be_short(unsigned short s);
57
unsigned short le_short(unsigned short s);
53
/** Convert big endian */
54
spx_uint32_t be_int(spx_uint32_t i);
55
/** Convert little endian */
56
spx_uint32_t le_int(spx_uint32_t i);
59
58
/** Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, speex_realloc and speex_free */
60
59
void *speex_alloc (int size);
61
/** Same as speex_alloc, except that the area is only needed inside a Speex call (might cause problem with wideband though) */
62
void *speex_alloc_scratch (int size);
62
64
/** Speex wrapper for realloc. To do your own dynamic allocation, all you need to do is replace this function, speex_alloc and speex_free */
63
65
void *speex_realloc (void *ptr, int size);
65
67
/** Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, speex_realloc and speex_alloc */
66
68
void speex_free (void *ptr);
70
/** Same as speex_alloc, except that the area is only needed inside a Speex call (might cause problem with wideband though) */
71
void speex_free_scratch (void *ptr);
68
73
/** Speex wrapper for mem_move */
69
74
void *speex_move (void *dest, void *src, int n);
71
void speex_error(char *str);
73
void speex_warning(char *str);
75
void speex_warning_int(char *str, int val);
76
/** Speex wrapper for memcpy */
77
void speex_memcpy_bytes(char *dst, char *src, int nbytes);
79
/** Speex wrapper for memset */
80
void speex_memset_bytes(char *dst, char src, int nbytes);
82
/** Print error message to stderr */
83
void speex_error(const char *str);
85
/** Print warning message to stderr */
86
void speex_warning(const char *str);
88
/** Print warning message with integer argument to stderr */
89
void speex_warning_int(const char *str, int val);
91
/** Generate a vector of random numbers */
77
92
void speex_rand_vec(float std, spx_sig_t *data, int len);
79
float speex_rand(float std);
94
/** Generate a random number */
95
spx_word32_t speex_rand(spx_word16_t std, spx_int32_t *seed);
97
/** Speex wrapper for putc */
81
98
void _speex_putc(int ch, void *file);