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 --- video/bink_decoder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'video/bink_decoder.cpp') diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index cf37e0f06b..8cbde8c849 100644 --- a/video/bink_decoder.cpp +++ b/video/bink_decoder.cpp @@ -1349,7 +1349,9 @@ void BinkDecoder::BinkVideoTrack::IDCTPut(DecodeContext &ctx, int16 *block) { } } -BinkDecoder::BinkAudioTrack::BinkAudioTrack(BinkDecoder::AudioInfo &audio) : _audioInfo(&audio) { +BinkDecoder::BinkAudioTrack::BinkAudioTrack(BinkDecoder::AudioInfo &audio, Audio::Mixer::SoundType soundType) : + AudioTrack(soundType), + _audioInfo(&audio) { _audioStream = Audio::makeQueuingAudioStream(_audioInfo->outSampleRate, _audioInfo->outChannels == 2); } @@ -1598,7 +1600,7 @@ void BinkDecoder::initAudioTrack(AudioInfo &audio) { else if (audio.codec == kAudioCodecDCT) audio.dct = new Common::DCT(frameLenBits, Common::DCT::DCT_III); - addTrack(new BinkAudioTrack(audio)); + addTrack(new BinkAudioTrack(audio, getSoundType())); } } // End of namespace Video -- cgit v1.2.3