diff options
| -rw-r--r-- | graphics/video/coktel_decoder.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index f5813db8df..6ec0929d82 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -1420,13 +1420,18 @@ void IMDDecoder::nextSoundSlice(bool hasNextCmd) {  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); | 
