aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2008-11-24 00:20:45 +0000
committerThomas White <taw27@cam.ac.uk>2008-11-24 00:20:45 +0000
commit66716ca899d4e3881fe7289c75dd2e4cf8bdcc0d (patch)
tree55eb0d887b6fbeb7578178d53859c8170d3dda6d
parenta11d62e04a1ac98b6cbedc208692825b9d99df1c (diff)
Record the AudioContext pointer a little earlier
-rw-r--r--src/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index 765ca77..56803fa 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -114,6 +114,7 @@ void audio_setup() {
/* Create audio context */
a = malloc(sizeof(AudioContext));
assert(a != NULL);
+ audio_context = a;
a->mootex = 0;
@@ -154,8 +155,6 @@ void audio_setup() {
SDL_PauseAudio(0);
- audio_context = a;
-
}
void audio_shutdown(AudioContext *a) {