diff --git a/audio.c b/audio.c index c7df011..d151333 100644 --- a/audio.c +++ b/audio.c @@ -4,7 +4,6 @@ Mix_Chunk * sfx_click = NULL; Mix_Chunk * sfx_click2 = NULL; Mix_Chunk * sfx_explosion = NULL; Mix_Chunk * sfx_win = NULL; -Mix_Chunk * sfx_lose = NULL; void init_audio() { @@ -24,7 +23,7 @@ void init_audio() sfx_click2 = Mix_LoadWAV("resources/click2.wav"); sfx_explosion = Mix_LoadWAV("resources/explosion.wav"); sfx_win = Mix_LoadWAV("resources/win.wav"); - sfx_lose = Mix_LoadWAV("resources/lose.wav"); + } void play_audio(int sfx_index) @@ -57,6 +56,5 @@ void audio_destroy() Mix_FreeChunk(sfx_click2); Mix_FreeChunk(sfx_explosion); Mix_FreeChunk(sfx_win); - Mix_FreeChunk(sfx_lose); Mix_Quit(); }