music_ogg.c
changeset 353 21fe62f9c4c6
parent 312 8a536296ef3d
child 354 e97cfc344dc3
     1.1 --- a/music_ogg.c	Sun Jul 15 01:04:29 2007 +0000
     1.2 +++ b/music_ogg.c	Sun Jul 15 03:38:33 2007 +0000
     1.3 @@ -165,7 +165,11 @@
     1.4  	char data[4096];
     1.5  	SDL_AudioCVT *cvt;
     1.6  
     1.7 +#ifdef OGG_USE_TREMOR
     1.8 +	len = vorbis.ov_read(&music->vf, data, sizeof(data), &section);
     1.9 +#else
    1.10  	len = vorbis.ov_read(&music->vf, data, sizeof(data), 0, 2, 1, &section);
    1.11 +#endif
    1.12  	if ( len <= 0 ) {
    1.13  		if ( len == 0 ) {
    1.14  			music->playing = 0;