Skip to content

Commit

Permalink
winmm: Let audio callback buffer size be less than 1/4 second (thanks…
Browse files Browse the repository at this point in the history
…, Jon!).

Maybe this was here for Win9x? There's no reason to insert this much latency
by default.

Fixes Bugzilla #2835.
  • Loading branch information
icculus committed Mar 24, 2015
1 parent ac2bb3f commit 878c232
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/audio/winmm/SDL_winmm.c
Expand Up @@ -248,10 +248,6 @@ WINMM_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
if (this->spec.channels > 2)
this->spec.channels = 2; /* !!! FIXME: is this right? */

/* Check the buffer size -- minimum of 1/4 second (word aligned) */
if (this->spec.samples < (this->spec.freq / 4))
this->spec.samples = ((this->spec.freq / 4) + 3) & ~3;

while ((!valid_datatype) && (test_format)) {
switch (test_format) {
case AUDIO_U8:
Expand Down

0 comments on commit 878c232

Please sign in to comment.