vrshoot

diff libs/vorbis/misc.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/vorbis/misc.h	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,57 @@
     1.4 +/********************************************************************
     1.5 + *                                                                  *
     1.6 + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
     1.7 + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
     1.8 + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
     1.9 + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
    1.10 + *                                                                  *
    1.11 + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
    1.12 + * by the Xiph.Org Foundation http://www.xiph.org/                  *
    1.13 + *                                                                  *
    1.14 + ********************************************************************
    1.15 +
    1.16 + function: miscellaneous prototypes
    1.17 + last mod: $Id: misc.h 16227 2009-07-08 06:58:46Z xiphmont $
    1.18 +
    1.19 + ********************************************************************/
    1.20 +
    1.21 +#ifndef _V_RANDOM_H_
    1.22 +#define _V_RANDOM_H_
    1.23 +#include "vorbis/codec.h"
    1.24 +
    1.25 +extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
    1.26 +extern void _vorbis_block_ripcord(vorbis_block *vb);
    1.27 +
    1.28 +#ifdef ANALYSIS
    1.29 +extern int analysis_noisy;
    1.30 +extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB,
    1.31 +                             ogg_int64_t off);
    1.32 +extern void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB,
    1.33 +                             ogg_int64_t off);
    1.34 +#endif
    1.35 +
    1.36 +#ifdef DEBUG_MALLOC
    1.37 +
    1.38 +#define _VDBG_GRAPHFILE "malloc.m"
    1.39 +#undef _VDBG_GRAPHFILE
    1.40 +extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line);
    1.41 +extern void _VDBG_free(void *ptr,char *file,long line);
    1.42 +
    1.43 +#ifndef MISC_C
    1.44 +#undef _ogg_malloc
    1.45 +#undef _ogg_calloc
    1.46 +#undef _ogg_realloc
    1.47 +#undef _ogg_free
    1.48 +
    1.49 +#define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__)
    1.50 +#define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__)
    1.51 +#define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__)
    1.52 +#define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__)
    1.53 +#endif
    1.54 +#endif
    1.55 +
    1.56 +#endif
    1.57 +
    1.58 +
    1.59 +
    1.60 +