music_flac.c
changeset 473 60b7e1c4f6b2
parent 470 5cebd6c5be2d
child 487 485a29de2b2d
     1.1 --- a/music_flac.c	Sun Nov 08 17:03:07 2009 +0000
     1.2 +++ b/music_flac.c	Sun Nov 08 17:11:09 2009 +0000
     1.3 @@ -99,7 +99,7 @@
     1.4  {
     1.5  	FLAC_music *data = (FLAC_music*)client_data;
     1.6  
     1.7 -	if (SDL_RWseek (data->rwops, absolute_byte_offset, SEEK_SET) < 0) {
     1.8 +	if (SDL_RWseek (data->rwops, absolute_byte_offset, RW_SEEK_SET) < 0) {
     1.9  		return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
    1.10  	}
    1.11  	else {
    1.12 @@ -133,9 +133,9 @@
    1.13  	FLAC_music *data = (FLAC_music*)client_data;
    1.14  
    1.15  	int pos = SDL_RWtell (data->rwops);
    1.16 -	int length = SDL_RWseek (data->rwops, 0, SEEK_END);
    1.17 +	int length = SDL_RWseek (data->rwops, 0, RW_SEEK_END);
    1.18  
    1.19 -	if (SDL_RWseek (data->rwops, pos, SEEK_SET) != pos || length < 0) {
    1.20 +	if (SDL_RWseek (data->rwops, pos, RW_SEEK_SET) != pos || length < 0) {
    1.21  		/* there was an error attempting to return the stream to the original
    1.22  		 * position, or the length was invalid. */
    1.23  		return FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR;
    1.24 @@ -153,7 +153,7 @@
    1.25  	FLAC_music *data = (FLAC_music*)client_data;
    1.26  
    1.27  	int pos = SDL_RWtell (data->rwops);
    1.28 -	int end = SDL_RWseek (data->rwops, 0, SEEK_END);
    1.29 +	int end = SDL_RWseek (data->rwops, 0, RW_SEEK_END);
    1.30  
    1.31  	// was the original position equal to the end (a.k.a. the seek didn't move)?
    1.32  	if (pos == end) {
    1.33 @@ -162,7 +162,7 @@
    1.34  	}
    1.35  	else {
    1.36  		// not EOF, return to the original position
    1.37 -		SDL_RWseek (data->rwops, pos, SEEK_SET);
    1.38 +		SDL_RWseek (data->rwops, pos, RW_SEEK_SET);
    1.39  
    1.40  		return false;
    1.41  	}