Skip to content

Commit

Permalink
#ifdef'd out the audio streamer code.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Mar 20, 2014
1 parent a43dbfa commit 6d6fba4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -367,6 +367,7 @@ SDL_RunAudio(void *devicep)
delay = ((device->spec.samples * 1000) / device->spec.freq);

/* Determine if the streamer is necessary here */
#if 0 /* !!! FIXME: rewrite/remove this streamer code. */
if (device->use_streamer == 1) {
/* This code is almost the same as the old code. The difference is, instead of reading
directly from the callback into "stream", then converting and sending the audio off,
Expand Down Expand Up @@ -456,6 +457,7 @@ SDL_RunAudio(void *devicep)

}
} else {
#endif
/* Otherwise, do not use the streamer. This is the old code. */
const int silence = (int) device->spec.silence;

Expand Down Expand Up @@ -504,14 +506,18 @@ SDL_RunAudio(void *devicep)
SDL_Delay(delay);
}
}
#if 0 /* !!! FIXME: rewrite/remove this streamer code. */
}
#endif

/* Wait for the audio to drain.. */
current_audio.impl.WaitDone(device);

/* If necessary, deinit the streamer */
#if 0 /* !!! FIXME: rewrite/remove this streamer code. */
if (device->use_streamer == 1)
SDL_StreamDeinit(&device->streamer);
#endif

return (0);
}
Expand Down

0 comments on commit 6d6fba4

Please sign in to comment.