Mercurial > sdl-ios-xcode
comparison src/audio/bsd/SDL_bsdaudio.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 | 2e36e0ecde33 |
children | 99210400e8b9 |
comparison
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 } |