src/audio/SDL_audio.c
changeset 5526 5645b3a5dc03
parent 5509 5b1b4d820d10
child 5535 96594ac5fd1a
equal deleted inserted replaced
5525:e427bb6266a4 5526:5645b3a5dc03
   326     int stream_len;
   326     int stream_len;
   327     void *udata;
   327     void *udata;
   328     void (SDLCALL * fill) (void *userdata, Uint8 * stream, int len);
   328     void (SDLCALL * fill) (void *userdata, Uint8 * stream, int len);
   329     int silence;
   329     int silence;
   330     Uint32 delay;
   330     Uint32 delay;
   331 
       
   332     /* The audio mixing is always a high priority thread */
       
   333     SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
       
   334 
       
   335     /* For streaming when the buffer sizes don't match up */
   331     /* For streaming when the buffer sizes don't match up */
   336     Uint8 *istream;
   332     Uint8 *istream;
   337     int istream_len = 0;
   333     int istream_len = 0;
       
   334 
       
   335     /* The audio mixing is always a high priority thread */
       
   336     SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
   338 
   337 
   339     /* Perform any thread setup */
   338     /* Perform any thread setup */
   340     device->threadid = SDL_ThreadID();
   339     device->threadid = SDL_ThreadID();
   341     current_audio.impl.ThreadInit(device);
   340     current_audio.impl.ThreadInit(device);
   342 
   341