diff options
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -36,6 +36,10 @@ int main(int argc, char **argv) { return 1; } - /* All cleanup is handled through atexit. */ + /* Allocate mixing channels to play more than 8 sounds in parallel. */ + if (Mix_AllocateChannels(69) != 69) + fprintf(stderr, "%s\n", Mix_GetError()); + + /* Cleanup is handled by previous atexit calls. */ return 0; } |