diff options
author | Thomas White <taw27@cam.ac.uk> | 2008-11-24 00:20:45 +0000 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2008-11-24 00:20:45 +0000 |
commit | 66716ca899d4e3881fe7289c75dd2e4cf8bdcc0d (patch) | |
tree | 55eb0d887b6fbeb7578178d53859c8170d3dda6d /src | |
parent | a11d62e04a1ac98b6cbedc208692825b9d99df1c (diff) |
Record the AudioContext pointer a little earlier
Diffstat (limited to 'src')
-rw-r--r-- | src/audio.c | 3 |
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) { |