Fixed rewinding problem (ov_raw_seek bugged)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@172 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -313,7 +313,7 @@ ALuint SoundDecoder_Decode (TFB_SoundDecoder *decoder)
|
|||||||
if (decoder->looping)
|
if (decoder->looping)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
if ((err = ov_raw_seek (vf, 0)) != 0)
|
if ((err = ov_pcm_seek (vf, 0)) != 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "SoundDecoder_Decode(): tried to loop %s but couldn't rewind, error code %d\n", decoder->filename, err);
|
fprintf (stderr, "SoundDecoder_Decode(): tried to loop %s but couldn't rewind, error code %d\n", decoder->filename, err);
|
||||||
}
|
}
|
||||||
@@ -411,7 +411,7 @@ void SoundDecoder_Rewind (TFB_SoundDecoder *decoder)
|
|||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
OggVorbis_File *vf = (OggVorbis_File *) decoder->data;
|
OggVorbis_File *vf = (OggVorbis_File *) decoder->data;
|
||||||
if ((err = ov_raw_seek (vf, 0)) != 0)
|
if ((err = ov_pcm_seek (vf, 0)) != 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "SoundDecoder_Rewind(): couldn't rewind %s, error code %d\n", decoder->filename, err);
|
fprintf (stderr, "SoundDecoder_Rewind(): couldn't rewind %s, error code %d\n", decoder->filename, err);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user