src/audio/SDL_wave.c
changeset 1428 5f52867ba65c
parent 1402 d910939febfa
child 1465 8dfa9a6d69a5
     1.1 --- a/src/audio/SDL_wave.c	Fri Feb 24 17:03:06 2006 +0000
     1.2 +++ b/src/audio/SDL_wave.c	Fri Feb 24 18:24:57 2006 +0000
     1.3 @@ -108,9 +108,9 @@
     1.4  	if ( delta < 16 ) {
     1.5  		delta = 16;
     1.6  	}
     1.7 -	state->iDelta = delta;
     1.8 +	state->iDelta = (Uint16)delta;
     1.9  	state->iSamp2 = state->iSamp1;
    1.10 -	state->iSamp1 = new_sample;
    1.11 +	state->iSamp1 = (Sint16)new_sample;
    1.12  	return(new_sample);
    1.13  }
    1.14  
    1.15 @@ -371,8 +371,8 @@
    1.16  			}
    1.17  
    1.18  			/* Store the initial sample we start with */
    1.19 -			decoded[0] = state[c].sample&0xFF;
    1.20 -			decoded[1] = state[c].sample>>8;
    1.21 +			decoded[0] = (Uint8)(state[c].sample&0xFF);
    1.22 +			decoded[1] = (Uint8)(state[c].sample>>8);
    1.23  			decoded += 2;
    1.24  		}
    1.25