浏览代码

#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.
Ryan C. Gordon 11 年之前
父节点
当前提交
6d6fba4b0a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/audio/SDL_audio.c

+ 6 - 0
src/audio/SDL_audio.c

@@ -367,6 +367,7 @@ SDL_RunAudio(void *devicep)
     delay = ((device->spec.samples * 1000) / device->spec.freq);
     delay = ((device->spec.samples * 1000) / device->spec.freq);
 
 
     /* Determine if the streamer is necessary here */
     /* Determine if the streamer is necessary here */
+#if 0  /* !!! FIXME: rewrite/remove this streamer code. */
     if (device->use_streamer == 1) {
     if (device->use_streamer == 1) {
         /* This code is almost the same as the old code. The difference is, instead of reading
         /* 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,
            directly from the callback into "stream", then converting and sending the audio off,
@@ -456,6 +457,7 @@ SDL_RunAudio(void *devicep)
 
 
         }
         }
     } else {
     } else {
+#endif
         /* Otherwise, do not use the streamer. This is the old code. */
         /* Otherwise, do not use the streamer. This is the old code. */
         const int silence = (int) device->spec.silence;
         const int silence = (int) device->spec.silence;
 
 
@@ -504,14 +506,18 @@ SDL_RunAudio(void *devicep)
                 SDL_Delay(delay);
                 SDL_Delay(delay);
             }
             }
         }
         }
+#if 0  /* !!! FIXME: rewrite/remove this streamer code. */
     }
     }
+#endif
 
 
     /* Wait for the audio to drain.. */
     /* Wait for the audio to drain.. */
     current_audio.impl.WaitDone(device);
     current_audio.impl.WaitDone(device);
 
 
     /* If necessary, deinit the streamer */
     /* If necessary, deinit the streamer */
+#if 0  /* !!! FIXME: rewrite/remove this streamer code. */
     if (device->use_streamer == 1)
     if (device->use_streamer == 1)
         SDL_StreamDeinit(&device->streamer);
         SDL_StreamDeinit(&device->streamer);
+#endif
 
 
     return (0);
     return (0);
 }
 }