[Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.4,1.5
Lionel Ulmer
bbrox at users.sourceforge.net
Tue Apr 16 12:56:03 CEST 2002
Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv26890/sound
Modified Files:
mixer.cpp
Log Message:
Small fix to get sounds to actually finish :-)
Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mixer.cpp 16 Apr 2002 18:33:04 -0000 1.4
--- mixer.cpp 16 Apr 2002 19:49:15 -0000 1.5
***************
*** 252,256 ****
if (_position >= _size) {
! return; /* TODO : add equivalent to 'clear' */
}
--- 252,257 ----
if (_position >= _size) {
! destroy();
! return;
}
***************
*** 260,264 ****
/* End of audio... */
if (_stream.error == MAD_ERROR_BUFLEN) {
! return; /* TODO : add equivalent to 'clear' */
} else if (!MAD_RECOVERABLE(_stream.error)) {
error("MAD frame decode error !");
--- 261,266 ----
/* End of audio... */
if (_stream.error == MAD_ERROR_BUFLEN) {
! destroy();
! return;
} else if (!MAD_RECOVERABLE(_stream.error)) {
error("MAD frame decode error !");
More information about the Scummvm-git-logs
mailing list