src/audio/dma/SDL_dmaaudio.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2060 866052b01ee5
child 2859 99210400e8b9
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