diff options
Diffstat (limited to 'engines/mohawk/video.cpp')
| -rw-r--r-- | engines/mohawk/video.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp index 4354bb5b97..994e219b03 100644 --- a/engines/mohawk/video.cpp +++ b/engines/mohawk/video.cpp @@ -164,8 +164,8 @@ void VideoManager::stopVideos() {  	_videos.clear();  } -VideoEntryPtr VideoManager::playMovie(const Common::String &fileName) { -	VideoEntryPtr ptr = open(fileName); +VideoEntryPtr VideoManager::playMovie(const Common::String &fileName, Audio::Mixer::SoundType soundType) { +	VideoEntryPtr ptr = open(fileName, soundType);  	if (!ptr)  		return VideoEntryPtr(); @@ -313,7 +313,7 @@ VideoEntryPtr VideoManager::open(uint16 id) {  	return entry;  } -VideoEntryPtr VideoManager::open(const Common::String &fileName) { +VideoEntryPtr VideoManager::open(const Common::String &fileName, Audio::Mixer::SoundType soundType) {  	// If this video is already playing, return that entry  	VideoEntryPtr oldVideo = findVideo(fileName);  	if (oldVideo) @@ -325,6 +325,7 @@ VideoEntryPtr VideoManager::open(const Common::String &fileName) {  		return VideoEntryPtr();  	Video::VideoDecoder *video = new Video::QuickTimeDecoder(); +	video->setSoundType(soundType);  	if (!video->loadStream(stream)) {  		// FIXME: Better error handling  		delete video; | 
