#ifdef'd out the audio streamer code.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 20 Mar 2014 17:00:33 -0400
changeset 86587939f33e81ac
parent 8657 9be67c80e84e
child 8659 d3a9836732ea
#ifdef'd out the audio streamer code.

It's been hardcoded out forever now, but I've now forcibly removed it with
the preprocessor so static analysis doesn't complain about it for now.

Eventually I want to rewrite or remove this code.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Thu Mar 20 16:56:37 2014 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Thu Mar 20 17:00:33 2014 -0400
     1.3 @@ -367,6 +367,7 @@
     1.4      delay = ((device->spec.samples * 1000) / device->spec.freq);
     1.5  
     1.6      /* Determine if the streamer is necessary here */
     1.7 +#if 0  /* !!! FIXME: rewrite/remove this streamer code. */
     1.8      if (device->use_streamer == 1) {
     1.9          /* This code is almost the same as the old code. The difference is, instead of reading
    1.10             directly from the callback into "stream", then converting and sending the audio off,
    1.11 @@ -456,6 +457,7 @@
    1.12  
    1.13          }
    1.14      } else {
    1.15 +#endif
    1.16          /* Otherwise, do not use the streamer. This is the old code. */
    1.17          const int silence = (int) device->spec.silence;
    1.18  
    1.19 @@ -504,14 +506,18 @@
    1.20                  SDL_Delay(delay);
    1.21              }
    1.22          }
    1.23 +#if 0  /* !!! FIXME: rewrite/remove this streamer code. */
    1.24      }
    1.25 +#endif
    1.26  
    1.27      /* Wait for the audio to drain.. */
    1.28      current_audio.impl.WaitDone(device);
    1.29  
    1.30      /* If necessary, deinit the streamer */
    1.31 +#if 0  /* !!! FIXME: rewrite/remove this streamer code. */
    1.32      if (device->use_streamer == 1)
    1.33          SDL_StreamDeinit(&device->streamer);
    1.34 +#endif
    1.35  
    1.36      return (0);
    1.37  }