diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-11 22:14:10 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-11 22:14:10 +0100 |
commit | 26ef4ead5c75a48513e1aac45dcf3761ce943629 (patch) | |
tree | 43e00c91fb67748bca6d5d4329aa3e88fe2e5ef1 | |
parent | 569c6508b2a39f60746ff0b0cbec963047d7b797 (diff) | |
download | musiclab-26ef4ead5c75a48513e1aac45dcf3761ce943629.tar.gz |
allocate mixing channels
-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; } |