annotate src/libvorbis-1.3.3/lib/misc.h @ 4:e13257ea84a4

Add bzip2, zlib, liblo, portaudio sources
author Chris Cannam
date Wed, 20 Mar 2013 13:59:52 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 /********************************************************************
Chris@1 2 * *
Chris@1 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
Chris@1 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
Chris@1 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
Chris@1 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
Chris@1 7 * *
Chris@1 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
Chris@1 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
Chris@1 10 * *
Chris@1 11 ********************************************************************
Chris@1 12
Chris@1 13 function: miscellaneous prototypes
Chris@1 14 last mod: $Id: misc.h 16227 2009-07-08 06:58:46Z xiphmont $
Chris@1 15
Chris@1 16 ********************************************************************/
Chris@1 17
Chris@1 18 #ifndef _V_RANDOM_H_
Chris@1 19 #define _V_RANDOM_H_
Chris@1 20 #include "vorbis/codec.h"
Chris@1 21
Chris@1 22 extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
Chris@1 23 extern void _vorbis_block_ripcord(vorbis_block *vb);
Chris@1 24
Chris@1 25 #ifdef ANALYSIS
Chris@1 26 extern int analysis_noisy;
Chris@1 27 extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB,
Chris@1 28 ogg_int64_t off);
Chris@1 29 extern void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB,
Chris@1 30 ogg_int64_t off);
Chris@1 31 #endif
Chris@1 32
Chris@1 33 #ifdef DEBUG_MALLOC
Chris@1 34
Chris@1 35 #define _VDBG_GRAPHFILE "malloc.m"
Chris@1 36 #undef _VDBG_GRAPHFILE
Chris@1 37 extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line);
Chris@1 38 extern void _VDBG_free(void *ptr,char *file,long line);
Chris@1 39
Chris@1 40 #ifndef MISC_C
Chris@1 41 #undef _ogg_malloc
Chris@1 42 #undef _ogg_calloc
Chris@1 43 #undef _ogg_realloc
Chris@1 44 #undef _ogg_free
Chris@1 45
Chris@1 46 #define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__)
Chris@1 47 #define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__)
Chris@1 48 #define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__)
Chris@1 49 #define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__)
Chris@1 50 #endif
Chris@1 51 #endif
Chris@1 52
Chris@1 53 #endif
Chris@1 54
Chris@1 55
Chris@1 56
Chris@1 57