File nut/contrib/hxmp3/buffers.c

* Fixed-point MP3 decoder * Jon Recker (jrecker@real.com), Ken Cooke (kenc@real.com) * June 2003 * * buffers.c - allocation and freeing of internal MP3 decoder buffers * * All memory allocation for the codec is done in this file, so if you don't want * to use other the default system malloc() and free() for heap management this is * the only file you'll need to change.


Included Files


Preprocessor definitions

#define SAFE_FREE( x )

Global Function xmp3_AllocateBuffers()

MP3DecInfo* xmp3_AllocateBuffers ( void )
Prototyped in: nut/include/contrib/hxmp3/mp3common.h
Calls: ClearBuffer() nut/contrib/hxmp3/buffers.c
  xmp3_FreeBuffers() nut/contrib/hxmp3/buffers.c
  malloc()

Global Function xmp3_FreeBuffers()

void xmp3_FreeBuffers ( MP3DecInfo* mp3DecInfo )
Prototyped in: nut/include/contrib/hxmp3/mp3common.h
Calls: free()
Called by: xmp3_AllocateBuffers() nut/contrib/hxmp3/buffers.c

Local Function ClearBuffer()

static void ClearBuffer ( void* buf, int nBytes )
Called by: xmp3_AllocateBuffers() nut/contrib/hxmp3/buffers.c