src/audio/SDL_audio.c
changeset 6389 43a190ad60a7
parent 6138 4c64952a58fb
child 6430 48d519500f7e
     1.1 --- a/src/audio/SDL_audio.c	Wed Aug 08 13:44:58 2012 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Thu Aug 09 14:14:41 2012 -0400
     1.3 @@ -314,7 +314,6 @@
     1.4      int stream_len;
     1.5      void *udata;
     1.6      void (SDLCALL * fill) (void *userdata, Uint8 * stream, int len);
     1.7 -    int silence;
     1.8      Uint32 delay;
     1.9      /* For streaming when the buffer sizes don't match up */
    1.10      Uint8 *istream;
    1.11 @@ -335,12 +334,6 @@
    1.12      device->use_streamer = 0;
    1.13  
    1.14      if (device->convert.needed) {
    1.15 -        if (device->convert.src_format == AUDIO_U8) {
    1.16 -            silence = 0x80;
    1.17 -        } else {
    1.18 -            silence = 0;
    1.19 -        }
    1.20 -
    1.21  #if 0                           /* !!! FIXME: I took len_div out of the structure. Use rate_incr instead? */
    1.22          /* If the result of the conversion alters the length, i.e. resampling is being used, use the streamer */
    1.23          if (device->convert.len_mult != 1 || device->convert.len_div != 1) {
    1.24 @@ -367,7 +360,6 @@
    1.25          /* stream_len = device->convert.len; */
    1.26          stream_len = device->spec.size;
    1.27      } else {
    1.28 -        silence = device->spec.silence;
    1.29          stream_len = device->spec.size;
    1.30      }
    1.31