music_flac.c
changeset 542 3de4970b36d4
parent 524 0f6aa6179b1d
child 545 32e5ed415a34
     1.1 --- a/music_flac.c	Tue Jan 03 16:46:05 2012 -0800
     1.2 +++ b/music_flac.c	Wed Jan 04 00:16:03 2012 -0500
     1.3 @@ -50,19 +50,6 @@
     1.4  	music->volume = volume;
     1.5  }
     1.6  
     1.7 -/* Load an FLAC stream from the given file */
     1.8 -FLAC_music *FLAC_new(const char *file)
     1.9 -{
    1.10 -	SDL_RWops *rw;
    1.11 -
    1.12 -	rw = SDL_RWFromFile (file, "rb");
    1.13 -	if (rw == NULL) {
    1.14 -		SDL_SetError ("Couldn't open %s", file);
    1.15 -		return NULL;
    1.16 -	}
    1.17 -	return FLAC_new_RW (rw, 1);
    1.18 -}
    1.19 -
    1.20  static FLAC__StreamDecoderReadStatus flac_read_music_cb(
    1.21  									const FLAC__StreamDecoder *decoder,
    1.22  									FLAC__byte buffer[],