arts: Patched to (maybe) compile.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Aug 2016 01:53:59 -0400
changeset 10231 0bd26418c5e4
parent 10230 ef43b2e678d2
child 10232 216367257386
arts: Patched to (maybe) compile.
src/audio/arts/SDL_artsaudio.c
--- a/src/audio/arts/SDL_artsaudio.c	Wed Aug 03 01:01:44 2016 -0400
+++ b/src/audio/arts/SDL_artsaudio.c	Wed Aug 03 01:53:59 2016 -0400
@@ -217,13 +217,13 @@
     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;
     }
 }