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