michael@0: /******************************************************************** michael@0: * * michael@0: * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * michael@0: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * michael@0: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * michael@0: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * michael@0: * * michael@0: * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * michael@0: * by the Xiph.Org Foundation http://www.xiph.org/ * michael@0: * * michael@0: ******************************************************************** michael@0: michael@0: function: miscellaneous prototypes michael@0: last mod: $Id: misc.h 16227 2009-07-08 06:58:46Z xiphmont $ michael@0: michael@0: ********************************************************************/ michael@0: michael@0: #ifndef _V_RANDOM_H_ michael@0: #define _V_RANDOM_H_ michael@0: #include "vorbis/codec.h" michael@0: michael@0: extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes); michael@0: extern void _vorbis_block_ripcord(vorbis_block *vb); michael@0: michael@0: #ifdef ANALYSIS michael@0: extern int analysis_noisy; michael@0: extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB, michael@0: ogg_int64_t off); michael@0: extern void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB, michael@0: ogg_int64_t off); michael@0: #endif michael@0: michael@0: #ifdef DEBUG_MALLOC michael@0: michael@0: #define _VDBG_GRAPHFILE "malloc.m" michael@0: #undef _VDBG_GRAPHFILE michael@0: extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line); michael@0: extern void _VDBG_free(void *ptr,char *file,long line); michael@0: michael@0: #ifndef MISC_C michael@0: #undef _ogg_malloc michael@0: #undef _ogg_calloc michael@0: #undef _ogg_realloc michael@0: #undef _ogg_free michael@0: michael@0: #define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__) michael@0: #define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__) michael@0: #define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__) michael@0: #define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__) michael@0: #endif michael@0: #endif michael@0: michael@0: #endif michael@0: michael@0: michael@0: michael@0: