From ec49730711399c7705211f76bf583ad73a681e16 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 10 Jul 2017 21:36:19 +0200 Subject: VIDEO: Allow setting the mixer sound type used to play audio tracks --- engines/titanic/support/avi_surface.cpp | 2 +- engines/titanic/support/avi_surface.h | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'engines/titanic/support') diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index 28b509a297..e52c2a7ea5 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -52,7 +52,7 @@ AVISurface::AVISurface(const CResourceKey &key) : _movieName(key.getString()) { _priorFrame = -1; // Create a decoder - _decoder = new AVIDecoder(Audio::Mixer::kPlainSoundType); + _decoder = new AVIDecoder(); if (!_decoder->loadFile(_movieName)) error("Could not open video - %s", key.getString().c_str()); diff --git a/engines/titanic/support/avi_surface.h b/engines/titanic/support/avi_surface.h index b7afac3988..fd21c9ceab 100644 --- a/engines/titanic/support/avi_surface.h +++ b/engines/titanic/support/avi_surface.h @@ -43,10 +43,9 @@ enum MovieFlag { class AVIDecoder : public Video::AVIDecoder { public: - AVIDecoder(Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType) : - Video::AVIDecoder(soundType) {} - AVIDecoder(const Common::Rational &frameRateOverride, Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType) : - Video::AVIDecoder(frameRateOverride, soundType) {} + AVIDecoder() {} + AVIDecoder(const Common::Rational &frameRateOverride) : + Video::AVIDecoder(frameRateOverride) {} /** * Returns the number of video tracks the decoder has -- cgit v1.2.3