summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index df408e7..f53e042 100644
--- a/main.c
+++ b/main.c
@@ -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;
}