aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2008-11-24 15:27:44 +0000
committerThomas White <taw27@cam.ac.uk>2008-11-24 15:27:44 +0000
commit9ed5bec39c0fcbed0f6d970f938d10244e9ef67c (patch)
treeabfcf72806c784571df786aedecd8ec610f87b41
parent243d0947af6e8e9f0a32d21b3ca4e5e4c8a8771f (diff)
audio.c: build fixes
-rw-r--r--src/audio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index 7464bea..1cd713d 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -39,6 +39,7 @@
#include <assert.h>
#include "types.h"
+#include "audio.h"
static AudioContext *audio_context = NULL;
@@ -145,8 +146,10 @@ void audio_setup() {
}
-void audio_shutdown(AudioContext *a) {
+void audio_shutdown() {
+ AudioContext *a = audio_context;
+
if ( a == NULL ) return;
SDL_CloseAudio();