X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=eee87022ee3146e7e37a903467f5a88f41fec398;hb=1101077a226b09854650662759bf12caf7c84f8d;hp=e5a1738b4840f59a4b2cc3c31fac267cd4f40d71;hpb=909a0a4d74f274b5c05c16cf595b235aa092fc9a;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index e5a1738b..eee87022 100644 --- a/src/init.c +++ b/src/init.c @@ -157,19 +157,12 @@ void InitSound() OpenAudio(); - for(i=0; iname) { - printf("reload sounds ...\n"); + InitReloadSounds(artwork.snd_current->name); artwork.sounds_set_current = artwork.snd_current->name; } if (artwork.music_set_current != artwork.mus_current->name) { - printf("reload music ...\n"); + InitReloadMusic(artwork.mus_current->name); artwork.music_set_current = artwork.mus_current->name; } @@ -1600,8 +1593,9 @@ void CloseAllAndExit(int exit_value) int i; StopSounds(); - FreeSounds(NUM_SOUNDS); CloseAudio(); + FreeAllSounds(); + FreeAllMusic(); FreeTileClipmasks(); for(i=0; i