comparison src/audio/dart/SDL_dart.c @ 3796:b19680c84cdf SDL-ryan-multiple-audio-device

Bunch of 1.3 audio cleanups to remove FIXMEs, get driver specific crap out of the core and into the drivers where it belongs, and push generic responsibilities out of the drivers and into the core where they belong.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Oct 2006 19:54:23 +0000
parents adf732f1f016
children c8b3d3d13ed1
comparison
equal deleted inserted replaced
3795:589bc3d060cd 3796:b19680c84cdf
283 283
284 284
285 void 285 void
286 DART_ThreadInit(_THIS) 286 DART_ThreadInit(_THIS)
287 { 287 {
288 return; 288 /* Increase the priority of this thread to make sure that
289 the audio will be continuous all the time! */
290 #ifdef USE_DOSSETPRIORITY
291 if (SDL_getenv("SDL_USE_TIMECRITICAL_AUDIO")) {
292 #ifdef DEBUG_BUILD
293 printf
294 ("[SDL_RunAudio] : Setting priority to TimeCritical+0! (TID%d)\n",
295 SDL_ThreadID());
296 #endif
297 DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);
298 } else {
299 #ifdef DEBUG_BUILD
300 printf
301 ("[SDL_RunAudio] : Setting priority to ForegroundServer+0! (TID%d)\n",
302 SDL_ThreadID());
303 #endif
304 DosSetPriority(PRTYS_THREAD, PRTYC_FOREGROUNDSERVER, 0, 0);
305 }
306 #endif
289 } 307 }
290 308
291 /* This function waits until it is possible to write a full sound buffer */ 309 /* This function waits until it is possible to write a full sound buffer */
292 void 310 void
293 DART_WaitAudio(_THIS) 311 DART_WaitAudio(_THIS)