Mix_Chunk

Description

Stores audio data in memory.

Note: It's a bad idea to free a chunk that is still being played...

Structure definition

typedef struct {
        int allocated;
        Uint8 *abuf;
        Uint32 alen;
        Uint8 volume;
} Mix_Chunk;

Structure Data

allocated

if 1 struct has its own allocated buffer, if 0 abuf should not be freed

abuf

pointer to audio data

alen

length of audio data in bytes

volume

Per-sample volume, 0-128 (normally MIX_MAX_VOLUME after loading)

See Also

Mix_FreeMusic, Mix_LoadWAV

Mix_Chunk (last edited 2008-09-09 14:24:30 by 91)