[Scummvm-cvs-logs] CVS: scummvm/sound audiostream.cpp,1.7,1.8
Max Horn
fingolfin at users.sourceforge.net
Mon Jul 28 20:03:15 CEST 2003
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv31291
Modified Files:
audiostream.cpp
Log Message:
account for the data in the _buffer, too
Index: audiostream.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/audiostream.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- audiostream.cpp 29 Jul 2003 01:37:02 -0000 1.7
+++ audiostream.cpp 29 Jul 2003 03:02:25 -0000 1.8
@@ -205,7 +205,7 @@
int VorbisInputStream::size() const {
if (_eof_flag)
return 0;
- return _end_pos - ov_pcm_tell(_ov_file);
+ return (_end_pos - ov_pcm_tell(_ov_file)) + (_buffer + ARRAYSIZE(_buffer) - _pos);
}
void VorbisInputStream::refill() {
More information about the Scummvm-git-logs
mailing list