wavestream.c
changeset 542 3de4970b36d4
parent 521 565549e046b0
child 561 87bdb4c81c0b
     1.1 --- a/wavestream.c	Tue Jan 03 16:46:05 2012 -0800
     1.2 +++ b/wavestream.c	Wed Jan 04 00:16:03 2012 -0500
     1.3 @@ -113,19 +113,7 @@
     1.4  	wavestream_volume = volume;
     1.5  }
     1.6  
     1.7 -WAVStream *WAVStream_LoadSong(const char *file, const char *magic)
     1.8 -{
     1.9 -	SDL_RWops *rw;
    1.10 -
    1.11 -	rw = SDL_RWFromFile(file, "rb");
    1.12 -	if ( rw == NULL ) {
    1.13 -		SDL_SetError("Couldn't open %s", file);
    1.14 -		return NULL;
    1.15 -	}
    1.16 -	return WAVStream_LoadSong_RW(rw, magic, 1);
    1.17 -}
    1.18 -
    1.19 -/* Load a WAV stream from the given file */
    1.20 +/* Load a WAV stream from the given RWops object */
    1.21  WAVStream *WAVStream_LoadSong_RW(SDL_RWops *rw, const char *magic, int freerw)
    1.22  {
    1.23  	WAVStream *wave;