src/audio/SDL_wave.c
changeset 1487 dc6b59e925a2
parent 1465 8dfa9a6d69a5
child 1612 97d0966f4bf7
     1.1 --- a/src/audio/SDL_wave.c	Wed Mar 08 18:30:12 2006 +0000
     1.2 +++ b/src/audio/SDL_wave.c	Thu Mar 09 06:33:21 2006 +0000
     1.3 @@ -433,7 +433,7 @@
     1.4  		was_error = 1;
     1.5  		goto done;
     1.6  	}
     1.7 -	headerDiff += sizeof(Uint32); // for WAVE
     1.8 +	headerDiff += sizeof(Uint32); /* for WAVE */
     1.9  
    1.10  	/* Read the audio data format chunk */
    1.11  	chunk.data = NULL;
    1.12 @@ -446,7 +446,7 @@
    1.13  			was_error = 1;
    1.14  			goto done;
    1.15  		}
    1.16 -		// 2 Uint32's for chunk header+len, plus the lenread
    1.17 +		/* 2 Uint32's for chunk header+len, plus the lenread */
    1.18  		headerDiff += lenread + 2 * sizeof(Uint32);
    1.19  	} while ( (chunk.magic == FACT) || (chunk.magic == LIST) );
    1.20  
    1.21 @@ -527,7 +527,7 @@
    1.22  		*audio_buf = chunk.data;
    1.23  		if(chunk.magic != DATA) headerDiff += lenread + 2 * sizeof(Uint32);
    1.24  	} while ( chunk.magic != DATA );
    1.25 -	headerDiff += 2 * sizeof(Uint32); // for the data chunk and len
    1.26 +	headerDiff += 2 * sizeof(Uint32); /* for the data chunk and len */
    1.27  
    1.28  	if ( MS_ADPCM_encoded ) {
    1.29  		if ( MS_ADPCM_decode(audio_buf, audio_len) < 0 ) {
    1.30 @@ -554,7 +554,7 @@
    1.31  		if ( freesrc ) {
    1.32  			SDL_RWclose(src);
    1.33  		} else {
    1.34 -			// seek to the end of the file (given by the RIFF chunk)
    1.35 +			/* seek to the end of the file (given by the RIFF chunk) */
    1.36  			SDL_RWseek(src, wavelen - chunk.length - headerDiff, RW_SEEK_CUR);
    1.37  		}
    1.38  	}