Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audio.c @ 1442:e3242177fe4a
Updated OS/2 build, yay!
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 26 Feb 2006 19:30:21 +0000 |
parents | ceb5c2fec4f1 |
children | dc6b59e925a2 |
comparison
equal
deleted
inserted
replaced
1441:b9f034536fa0 | 1442:e3242177fe4a |
---|---|
179 | 179 |
180 #ifdef __OS2__ | 180 #ifdef __OS2__ |
181 // Increase the priority of this thread to make sure that | 181 // Increase the priority of this thread to make sure that |
182 // the audio will be continuous all the time! | 182 // the audio will be continuous all the time! |
183 #ifdef USE_DOSSETPRIORITY | 183 #ifdef USE_DOSSETPRIORITY |
184 if (SDL_getenv("SDL_USE_TIMECRITICAL_AUDIO")) | |
185 { | |
184 #ifdef DEBUG_BUILD | 186 #ifdef DEBUG_BUILD |
185 printf("[SDL_RunAudio] : Setting priority to ForegroundServer+0! (TID%d)\n", SDL_ThreadID()); | 187 printf("[SDL_RunAudio] : Setting priority to TimeCritical+0! (TID%d)\n", SDL_ThreadID()); |
186 #endif | 188 #endif |
187 DosSetPriority(PRTYS_THREAD, PRTYC_FOREGROUNDSERVER, 0, 0); | 189 DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0); |
190 } | |
191 else | |
192 { | |
193 #ifdef DEBUG_BUILD | |
194 printf("[SDL_RunAudio] : Setting priority to ForegroundServer+0! (TID%d)\n", SDL_ThreadID()); | |
195 #endif | |
196 DosSetPriority(PRTYS_THREAD, PRTYC_FOREGROUNDSERVER, 0, 0); | |
197 } | |
188 #endif | 198 #endif |
189 #endif | 199 #endif |
190 | 200 |
191 /* Loop, filling the audio buffers */ | 201 /* Loop, filling the audio buffers */ |
192 while ( audio->enabled ) { | 202 while ( audio->enabled ) { |