src/audio/SDL_audio.c
changeset 1442 e3242177fe4a
parent 1408 ceb5c2fec4f1
child 1487 dc6b59e925a2
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 ) {