wavestream.c
changeset 42 69145e9bda35
parent 29 44b09d6e1170
child 47 103ac6380537
     1.1 --- a/wavestream.c	Fri Jan 28 16:42:09 2000 +0000
     1.2 +++ b/wavestream.c	Tue Feb 01 21:16:29 2000 +0000
     1.3 @@ -39,7 +39,7 @@
     1.4  static WAVStream *theWave = NULL;
     1.5  
     1.6  /* This is initialized by the music mixer */
     1.7 -SDL_mutex *music_lock = NULL;
     1.8 +static SDL_mutex *music_lock = NULL;
     1.9  
    1.10  /* This is the format of the audio mixer data */
    1.11  static SDL_AudioSpec mixer;
    1.12 @@ -304,7 +304,7 @@
    1.13  			was_error = 1;
    1.14  			goto done;
    1.15  	}
    1.16 -	spec->channels = SDL_SwapLE16(format->channels);
    1.17 +	spec->channels = (Uint8) SDL_SwapLE16(format->channels);
    1.18  	spec->samples = 4096;		/* Good default buffer size */
    1.19  
    1.20  	/* Set the file offset to the DATA chunk data */
    1.21 @@ -452,7 +452,7 @@
    1.22  			was_error = 1;
    1.23  			goto done;
    1.24  	}
    1.25 -	spec->channels = channels;
    1.26 +	spec->channels = (Uint8) channels;
    1.27  	spec->samples = 4096;		/* Good default buffer size */
    1.28  
    1.29  done: