[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2.8 Mix_FreeChunk

void Mix_FreeChunk(Mix_Chunk *chunk)

chunk
Pointer to the Mix_Chunk to free.

Free the memory used in chunk, and free chunk itself as well. Do not use chunk after this without loading a new sample to it. Note: It's a bad idea to free a chunk that is still being played...

 
// free the sample
// Mix_Chunk *sample;
Mix_FreeChunk(sample);
sample=NULL; // to be safe...

See Also:
4.2.3 Mix_LoadWAV, 4.2.4 Mix_LoadWAV_RW, 4.2.5 Mix_QuickLoad_WAV,



This document was generated on November, 13 2009 using texi2html