examples/SFExamples/oggvorbiscodec94/src/libvorbis/lib/misc.h

00001 /********************************************************************
00002  *                                                                  *
00003  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
00004  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00005  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00006  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00007  *                                                                  *
00008  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
00009  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
00010  *                                                                  *
00011  ********************************************************************
00012 
00013  function: miscellaneous prototypes
00014  last mod: $Id: misc.h 7187 2004-07-20 07:24:27Z xiphmont $
00015 
00016  ********************************************************************/
00017 
00018 #ifndef _V_RANDOM_H_
00019 #define _V_RANDOM_H_
00020 #include "vorbis/codec.h"
00021 
00022 extern int analysis_noisy;
00023 
00024 extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
00025 extern void _vorbis_block_ripcord(vorbis_block *vb);
00026 extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB,
00027                              ogg_int64_t off);
00028 
00029 #ifdef DEBUG_MALLOC
00030 
00031 #define _VDBG_GRAPHFILE "malloc.m"
00032 extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line); 
00033 extern void _VDBG_free(void *ptr,char *file,long line); 
00034 
00035 #ifndef MISC_C 
00036 #undef _ogg_malloc
00037 #undef _ogg_calloc
00038 #undef _ogg_realloc
00039 #undef _ogg_free
00040 
00041 #define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__)
00042 #define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__)
00043 #define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__)
00044 #define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__)
00045 #endif
00046 #endif
00047 
00048 #endif
00049 
00050 
00051 
00052 

Generated by  doxygen 1.6.2