load_ogg.c
changeset 353 21fe62f9c4c6
parent 312 8a536296ef3d
child 386 695494546b3c
     1.1 --- a/load_ogg.c	Sun Jul 15 01:04:29 2007 +0000
     1.2 +++ b/load_ogg.c	Sun Jul 15 03:38:33 2007 +0000
     1.3 @@ -117,9 +117,15 @@
     1.4  
     1.5      buf = *audio_buf;
     1.6      to_read = *audio_len;
     1.7 +#ifdef OGG_USE_TREMOR
     1.8 +    for (read = vorbis.ov_read(&vf, (char *)buf, to_read, &bitstream);
     1.9 +	 read > 0;
    1.10 +	 read = vorbis.ov_read(&vf, (char *)buf, to_read, &bitstream))
    1.11 +#else
    1.12      for (read = vorbis.ov_read(&vf, (char *)buf, to_read, 0/*LE*/, 2/*16bit*/, 1/*signed*/, &bitstream);
    1.13           read > 0;
    1.14           read = vorbis.ov_read(&vf, (char *)buf, to_read, 0, 2, 1, &bitstream))
    1.15 +#endif	 
    1.16      {
    1.17          if (read == OV_HOLE || read == OV_EBADLINK)
    1.18              break; /* error */