Mercurial > sdl-ios-xcode
diff src/audio/SDL_wave.c @ 1428:5f52867ba65c
Update for Visual C++ 6.0
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 24 Feb 2006 18:24:57 +0000 |
parents | d910939febfa |
children | 8dfa9a6d69a5 |
line wrap: on
line diff
--- a/src/audio/SDL_wave.c Fri Feb 24 17:03:06 2006 +0000 +++ b/src/audio/SDL_wave.c Fri Feb 24 18:24:57 2006 +0000 @@ -108,9 +108,9 @@ if ( delta < 16 ) { delta = 16; } - state->iDelta = delta; + state->iDelta = (Uint16)delta; state->iSamp2 = state->iSamp1; - state->iSamp1 = new_sample; + state->iSamp1 = (Sint16)new_sample; return(new_sample); } @@ -371,8 +371,8 @@ } /* Store the initial sample we start with */ - decoded[0] = state[c].sample&0xFF; - decoded[1] = state[c].sample>>8; + decoded[0] = (Uint8)(state[c].sample&0xFF); + decoded[1] = (Uint8)(state[c].sample>>8); decoded += 2; }