[Scummvm-cvs-logs] SF.net SVN: scummvm: [28412] scummvm/trunk/engines/gob/coktelvideo.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Thu Aug 2 18:24:05 CEST 2007
Revision: 28412
http://scummvm.svn.sourceforge.net/scummvm/?rev=28412&view=rev
Author: drmccoy
Date: 2007-08-02 09:24:04 -0700 (Thu, 02 Aug 2007)
Log Message:
-----------
Don't restart the audiostream when the IMD refills all sound buffers at once
Modified Paths:
--------------
scummvm/trunk/engines/gob/coktelvideo.cpp
Modified: scummvm/trunk/engines/gob/coktelvideo.cpp
===================================================================
--- scummvm/trunk/engines/gob/coktelvideo.cpp 2007-08-02 16:21:49 UTC (rev 28411)
+++ scummvm/trunk/engines/gob/coktelvideo.cpp 2007-08-02 16:24:04 UTC (rev 28412)
@@ -257,6 +257,7 @@
delete _audioStream;
_audioStream = 0;
+ _soundStage = 0;
}
_soundEnabled = false;
_mixer = 0;
@@ -526,8 +527,9 @@
_stream->read(soundBuf, dataLength);
unsignedToSigned(soundBuf, dataLength);
- _soundStage = 1;
- startSound = true;
+ if (_soundStage == 1)
+ startSound = true;
+
_audioStream->queueBuffer(soundBuf, dataLength);
} else
_stream->seek(dataLength, SEEK_CUR);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list