From f096f1c1606f9938fc7c095f2f073b7841c7d7f0 Mon Sep 17 00:00:00 2001 From: Gryfenfer Date: Sat, 21 Jan 2023 12:57:52 +0100 Subject: [PATCH] audio looping fix --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index f62f087..99665b7 100644 --- a/src/main.c +++ b/src/main.c @@ -16,7 +16,7 @@ Mix_Music *prout; static void space(void) { printf("space!\n"); - if(Mix_PlayMusic(prout, -1) != 0){ + if(Mix_PlayMusic(prout, 0) != 0){ printf("Music sound could not be played!\n" "SDL_Error: %s\n", Mix_GetError()); Mix_FreeMusic(prout); @@ -40,8 +40,8 @@ static void game_main(void) { SDL_Surface* img = IMG_Load("./assets/img/pp.png"); RenderObject_t duck = { - 0.2, - 0.2, + 0.25, + 0.25, 0, 0.50, 0.50, @@ -69,7 +69,7 @@ int main(void) { running = false; } - prout = Mix_LoadMUS("./assets/music/pet.mp3"); + prout = Mix_LoadMUS("./assets/music/jojo arab.mp3"); if(prout == NULL) { fprintf(stderr, "Prout not found!\n"); exit(1);