src/audio/SDL_wave.c
branchSDL-1.2
changeset 6227 e11fd9609d10
parent 6137 4720145f848b
child 12800 e52413f52586
     1.1 --- a/src/audio/SDL_wave.c	Wed Jan 18 03:36:47 2012 -0500
     1.2 +++ b/src/audio/SDL_wave.c	Wed Jan 18 12:17:16 2012 -0500
     1.3 @@ -47,7 +47,6 @@
     1.4  static int 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 @@ -60,7 +59,6 @@
    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  		rogue_feel += sizeof(Uint16);
    1.17  	}
    1.18  	MS_ADPCM_state.wSamplesPerBlock = ((rogue_feel[1]<<8)|rogue_feel[0]);
    1.19 @@ -227,7 +225,6 @@
    1.20  static int InitIMA_ADPCM(WaveFMT *format)
    1.21  {
    1.22  	Uint8 *rogue_feel;
    1.23 -	Uint16 extra_info;
    1.24  
    1.25  	/* Set the rogue pointer to the IMA_ADPCM specific data */
    1.26  	IMA_ADPCM_state.wavefmt.encoding = SDL_SwapLE16(format->encoding);
    1.27 @@ -239,7 +236,6 @@
    1.28  					 SDL_SwapLE16(format->bitspersample);
    1.29  	rogue_feel = (Uint8 *)format+sizeof(*format);
    1.30  	if ( sizeof(*format) == 16 ) {
    1.31 -		extra_info = ((rogue_feel[1]<<8)|rogue_feel[0]);
    1.32  		rogue_feel += sizeof(Uint16);
    1.33  	}
    1.34  	IMA_ADPCM_state.wSamplesPerBlock = ((rogue_feel[1]<<8)|rogue_feel[0]);