annotate src/libvorbis-1.3.3/lib/misc.h @ 141:1b5b6dfd0d0e

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