src/audio/nto/SDL_nto_audio.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2060 866052b01ee5
child 2859 99210400e8b9
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
   152             if (FD_ISSET(this->hidden->audio_fd, &wfds)) {
   152             if (FD_ISSET(this->hidden->audio_fd, &wfds)) {
   153                 return;
   153                 return;
   154             }
   154             }
   155             break;
   155             break;
   156         }
   156         }
   157     }
   157     } while (1);
   158     while (1);
       
   159 }
   158 }
   160 
   159 
   161 static void
   160 static void
   162 NTO_PlayDevice(_THIS)
   161 NTO_PlayDevice(_THIS)
   163 {
   162 {
   211         } else {
   210         } else {
   212             /* we wrote all remaining data */
   211             /* we wrote all remaining data */
   213             towrite -= written;
   212             towrite -= written;
   214             pcmbuffer += written * this->spec.channels;
   213             pcmbuffer += written * this->spec.channels;
   215         }
   214         }
   216     }
   215     } while ((towrite > 0) && (this->enabled));
   217     while ((towrite > 0) && (this->enabled));
       
   218 
   216 
   219     /* If we couldn't write, assume fatal error for now */
   217     /* If we couldn't write, assume fatal error for now */
   220     if (towrite != 0) {
   218     if (towrite != 0) {
   221         this->enabled = 0;
   219         this->enabled = 0;
   222     }
   220     }