[Scummvm-cvs-logs] SF.net SVN: scummvm:[55324] scummvm/trunk/graphics/video/coktel_decoder.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Wed Jan 19 10:03:09 CET 2011


Revision: 55324
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55324&view=rev
Author:   drmccoy
Date:     2011-01-19 09:03:09 +0000 (Wed, 19 Jan 2011)

Log Message:
-----------
VIDEO: Recreate the audiostream if necessary

Modified Paths:
--------------
    scummvm/trunk/graphics/video/coktel_decoder.cpp

Modified: scummvm/trunk/graphics/video/coktel_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.cpp	2011-01-19 09:02:39 UTC (rev 55323)
+++ scummvm/trunk/graphics/video/coktel_decoder.cpp	2011-01-19 09:03:09 UTC (rev 55324)
@@ -1420,13 +1420,18 @@
 bool IMDDecoder::initialSoundSlice(bool hasNextCmd) {
 	int dataLength = _soundSliceSize * _soundSlicesCount;
 
-	if (hasNextCmd || !_soundEnabled || !_audioStream) {
+	if (hasNextCmd || !_soundEnabled) {
 		// Skip sound
 
 		_stream->skip(dataLength);
 		return false;
 	}
 
+	if (!_audioStream) {
+		_audioStream = Audio::makeQueuingAudioStream(_soundFreq, false);
+		_soundStage  = kSoundLoaded;
+	}
+
 	// Read, convert, queue
 
 	byte *soundBuf = (byte *)malloc(dataLength);


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