winmm: Let audio callback buffer size be less than 1/4 second (thanks, Jon!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 24 Mar 2015 02:13:25 -0400
changeset 9427eb1bde345c4b
parent 9424 a3344156e514
child 9428 c6af2fe2097a
winmm: Let audio callback buffer size be less than 1/4 second (thanks, Jon!).

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

Fixes Bugzilla #2835.
src/audio/winmm/SDL_winmm.c
     1.1 --- a/src/audio/winmm/SDL_winmm.c	Mon Mar 23 20:07:24 2015 -0400
     1.2 +++ b/src/audio/winmm/SDL_winmm.c	Tue Mar 24 02:13:25 2015 -0400
     1.3 @@ -248,10 +248,6 @@
     1.4      if (this->spec.channels > 2)
     1.5          this->spec.channels = 2;        /* !!! FIXME: is this right? */
     1.6  
     1.7 -    /* Check the buffer size -- minimum of 1/4 second (word aligned) */
     1.8 -    if (this->spec.samples < (this->spec.freq / 4))
     1.9 -        this->spec.samples = ((this->spec.freq / 4) + 3) & ~3;
    1.10 -
    1.11      while ((!valid_datatype) && (test_format)) {
    1.12          switch (test_format) {
    1.13          case AUDIO_U8: