Mercurial > sdl-ios-xcode
comparison src/audio/dma/SDL_dmaaudio.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 |
---|---|
496 if (ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &info) < 0) { | 496 if (ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &info) < 0) { |
497 /* Uh oh... */ | 497 /* Uh oh... */ |
498 this->enabled = 0; | 498 this->enabled = 0; |
499 return (NULL); | 499 return (NULL); |
500 } | 500 } |
501 } | 501 } while (frame_ticks && (info.blocks < 1)); |
502 while (frame_ticks && (info.blocks < 1)); | |
503 #ifdef DEBUG_AUDIO | 502 #ifdef DEBUG_AUDIO |
504 if (info.blocks > 1) { | 503 if (info.blocks > 1) { |
505 printf("Warning: audio underflow (%d frags)\n", info.blocks - 1); | 504 printf("Warning: audio underflow (%d frags)\n", info.blocks - 1); |
506 } | 505 } |
507 #endif | 506 #endif |