src/audio/bsd/SDL_bsdaudio.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2065 2e36e0ecde33
child 2859 99210400e8b9
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
   268 
   268 
   269         if (p < written
   269         if (p < written
   270             || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) {
   270             || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) {
   271             SDL_Delay(1);       /* Let a little CPU time go by */
   271             SDL_Delay(1);       /* Let a little CPU time go by */
   272         }
   272         }
   273     }
   273     } while (p < written);
   274     while (p < written);
       
   275 
   274 
   276     /* If timer synchronization is enabled, set the next write frame */
   275     /* If timer synchronization is enabled, set the next write frame */
   277     if (this->hidden->frame_ticks) {
   276     if (this->hidden->frame_ticks) {
   278         this->hidden->next_frame += this->hidden->frame_ticks;
   277         this->hidden->next_frame += this->hidden->frame_ticks;
   279     }
   278     }