diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/coktel_decoder.cpp | 1 | ||||
-rw-r--r-- | video/coktel_decoder.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/video/coktel_decoder.cpp b/video/coktel_decoder.cpp index 278dc2d1fc..4e05499065 100644 --- a/video/coktel_decoder.cpp +++ b/video/coktel_decoder.cpp @@ -2779,6 +2779,7 @@ void VMDDecoder::setAutoStartSound(bool autoStartSound) { AdvancedVMDDecoder::AdvancedVMDDecoder(Audio::Mixer::SoundType soundType) { _decoder = new VMDDecoder(g_system->getMixer(), soundType); _decoder->setAutoStartSound(false); + _useAudioSync = true; } AdvancedVMDDecoder::~AdvancedVMDDecoder() { diff --git a/video/coktel_decoder.h b/video/coktel_decoder.h index 44de1c7d68..726d052e26 100644 --- a/video/coktel_decoder.h +++ b/video/coktel_decoder.h @@ -569,6 +569,11 @@ public: void close(); void setSurfaceMemory(void *mem, uint16 width, uint16 height, uint8 bpp); + void setAudioSync(bool sync) { _useAudioSync = sync; } + +protected: + bool _useAudioSync; + bool useAudioSync() const { return _useAudioSync; } private: class VMDVideoTrack : public FixedRateVideoTrack { |