src/audio/SDL_wave.c
changeset 6389 43a190ad60a7
parent 6138 4c64952a58fb
child 6409 b85e863a507e
     1.1 --- a/src/audio/SDL_wave.c	Wed Aug 08 13:44:58 2012 -0400
     1.2 +++ b/src/audio/SDL_wave.c	Thu Aug 09 14:14:41 2012 -0400
     1.3 @@ -49,7 +49,6 @@
     1.4  InitMS_ADPCM(WaveFMT * format)
     1.5  {
     1.6      Uint8 *rogue_feel;
     1.7 -    Uint16 extra_info;
     1.8      int i;
     1.9  
    1.10      /* Set the rogue pointer to the MS_ADPCM specific data */
    1.11 @@ -62,7 +61,7 @@
    1.12          SDL_SwapLE16(format->bitspersample);
    1.13      rogue_feel = (Uint8 *) format + sizeof(*format);
    1.14      if (sizeof(*format) == 16) {
    1.15 -        extra_info = ((rogue_feel[1] << 8) | rogue_feel[0]);
    1.16 +        /*const Uint16 extra_info = ((rogue_feel[1] << 8) | rogue_feel[0]);*/
    1.17          rogue_feel += sizeof(Uint16);
    1.18      }
    1.19      MS_ADPCM_state.wSamplesPerBlock = ((rogue_feel[1] << 8) | rogue_feel[0]);
    1.20 @@ -233,7 +232,6 @@
    1.21  InitIMA_ADPCM(WaveFMT * format)
    1.22  {
    1.23      Uint8 *rogue_feel;
    1.24 -    Uint16 extra_info;
    1.25  
    1.26      /* Set the rogue pointer to the IMA_ADPCM specific data */
    1.27      IMA_ADPCM_state.wavefmt.encoding = SDL_SwapLE16(format->encoding);
    1.28 @@ -245,7 +243,7 @@
    1.29          SDL_SwapLE16(format->bitspersample);
    1.30      rogue_feel = (Uint8 *) format + sizeof(*format);
    1.31      if (sizeof(*format) == 16) {
    1.32 -        extra_info = ((rogue_feel[1] << 8) | rogue_feel[0]);
    1.33 +        /*const Uint16 extra_info = ((rogue_feel[1] << 8) | rogue_feel[0]);*/
    1.34          rogue_feel += sizeof(Uint16);
    1.35      }
    1.36      IMA_ADPCM_state.wSamplesPerBlock = ((rogue_feel[1] << 8) | rogue_feel[0]);