Skip to content

Commit

Permalink
arts: Patched to (maybe) compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 3, 2016
1 parent a7dddac commit ecbd625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/arts/SDL_artsaudio.c
Expand Up @@ -217,13 +217,13 @@ ARTS_FlushCapture(_THIS)
arts_stream_t stream = this->hidden->stream;
int remain = SDL_NAME(arts_stream_get)(stream, ARTS_P_BUFFER_SPACE);
Uint8 buf[512];
while (space > 0) {
while (remain > 0) {
const int len = SDL_min(sizeof (buf), remain);
const int br = SDL_NAME(arts_read)(stream, buf, len);
if (br <= 0) {
return; /* oh well. */
}
space -= br;
remain -= br;
}
}

Expand Down

0 comments on commit ecbd625

Please sign in to comment.