00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef MISC_H
00036 #define MISC_H
00037
00038 #ifndef SPEEX_VERSION
00039 #define SPEEX_MAJOR_VERSION 1
00040 #define SPEEX_MINOR_VERSION 1
00041 #define SPEEX_MICRO_VERSION 11
00042 #define SPEEX_EXTRA_VERSION ".1"
00043 #define SPEEX_VERSION "speex-1.1.11.1"
00044 #endif
00045
00046 #include "arch.h"
00047
00048 #ifndef RELEASE
00049
00050 void print_vec(float *vec, int len, char *name);
00051 #endif
00052
00054 spx_uint32_t be_int(spx_uint32_t i);
00056 spx_uint32_t le_int(spx_uint32_t i);
00057
00059 void *speex_alloc (int size);
00060
00062 void *speex_alloc_scratch (int size);
00063
00065 void *speex_realloc (void *ptr, int size);
00066
00068 void speex_free (void *ptr);
00069
00071 void speex_free_scratch (void *ptr);
00072
00074 void *speex_move (void *dest, void *src, int n);
00075
00077 void speex_memcpy_bytes(char *dst, char *src, int nbytes);
00078
00080 void speex_memset_bytes(char *dst, char src, int nbytes);
00081
00083 void speex_error(const char *str);
00084
00086 void speex_warning(const char *str);
00087
00089 void speex_warning_int(const char *str, int val);
00090
00092 void speex_rand_vec(float std, spx_sig_t *data, int len);
00093
00095 spx_word32_t speex_rand(spx_word16_t std, spx_int32_t *seed);
00096
00098 void _speex_putc(int ch, void *file);
00099
00100 #endif