This commit is contained in:
Marc
2023-01-22 15:45:34 +01:00
parent 2e92bad7c7
commit 3d4e0c8750
3 changed files with 56 additions and 14 deletions
+2 -2
View File
@@ -34,11 +34,11 @@ int menu_staticRender(void){
music = Mix_LoadMUS("./assets/music/menu.wav");
if(music == NULL) {
fprintf(stderr, "Prout not found!\n");
fprintf(stderr, "Menu music not found!\n");
exit(1);
}
if(Mix_PlayMusic(music, 0) != 0){
if(Mix_PlayMusic(music, -1) != 0){
printf("Music sound could not be played!\n"
"SDL_Error: %s\n", Mix_GetError());
Mix_FreeMusic(music);