Fixed an issue where the chan array was cleared during audio_free,
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 23 Nov 2006 10:58:55 +0000 (10:58 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 23 Nov 2006 10:58:55 +0000 (10:58 +0000)
resulting in all sounds being (and remaining) muted after toggling the
audio setting in the conf screen.

git-svn-id: https://s.snth.net/svn/neverball/trunk@743 78b8d119-cf0a-0410-b17c-f493084dd1d7

share/audio.c

index ff2e245..d9ecdb6 100644 (file)
@@ -80,7 +80,6 @@ void audio_free(void)
                 Mix_FreeChunk(buff[i]);
 
                 buff[i] = NULL;
-                chan[i] = 0;
             }
 
         audio_state = 0;