From e548e78c16855872b166f78f505992a15943aa14 Mon Sep 17 00:00:00 2001 From: Airlangga Cahya Utama Date: Sun, 3 Apr 2011 18:24:27 +0700 Subject: [PATCH] Move variable declaration position to stick with C standart. --- src/audio/SDL_audio.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index c7c14f81b..a830037a0 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -328,14 +328,13 @@ SDL_RunAudio(void *devicep) void (SDLCALL * fill) (void *userdata, Uint8 * stream, int len); int silence; Uint32 delay; - - /* The audio mixing is always a high priority thread */ - SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH); - /* For streaming when the buffer sizes don't match up */ Uint8 *istream; int istream_len = 0; + /* The audio mixing is always a high priority thread */ + SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH); + /* Perform any thread setup */ device->threadid = SDL_ThreadID(); current_audio.impl.ThreadInit(device);