Mix_FreeChunk

Name

Mix_FreeChunk -- Free the memory used in chunk, and free chunk itself as well.

Synopsis

#include "SDL.h"

void Mix_FreeChunk(Mix_Chunk *chunk);

Description

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...

Return Value

None.

Example

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

See Also

Mix_VolumeChunk

Mix_FreeChunk (last edited 2008-04-17 08:18:56 by localhost)