src/audio/SDL_audiocvt.c
changeset 10764 f9bf759e9dd1
parent 10759 d698fdebebfe
child 10767 b6046389b839
     1.1 --- a/src/audio/SDL_audiocvt.c	Fri Jan 06 00:56:29 2017 -0500
     1.2 +++ b/src/audio/SDL_audiocvt.c	Fri Jan 06 01:02:58 2017 -0500
     1.3 @@ -832,7 +832,7 @@
     1.4  
     1.5  /* get converted/resampled data from the stream */
     1.6  int
     1.7 -SDL_AudioStreamGet(SDL_AudioStream *stream, Uint32 len, void *buf, const Uint32 buflen)
     1.8 +SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, const Uint32 len)
     1.9  {
    1.10      if (!stream) {
    1.11          return SDL_InvalidParamError("stream");
    1.12 @@ -844,7 +844,7 @@
    1.13          return SDL_SetError("Can't request partial sample frames");
    1.14      }
    1.15  
    1.16 -    return (int) SDL_ReadFromDataQueue(stream->queue, buf, buflen);
    1.17 +    return (int) SDL_ReadFromDataQueue(stream->queue, buf, len);
    1.18  }
    1.19  
    1.20  /* number of converted/resampled bytes available */