equal
deleted
inserted
replaced
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 } |