Mercurial > sdl-ios-xcode
comparison src/audio/nto/SDL_nto_audio.c @ 2669:e27bdcc80744 gsoc2008_nds
First commit. Added header configs for DS as well as a Makefile. Initial work on framebuffer video driver, currently not functioning as desired.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Tue, 10 Jun 2008 06:45:39 +0000 |
parents | 866052b01ee5 |
children | 99210400e8b9 |
comparison
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 } |