aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2012-08-26 23:05:33 -0400
committerMatthew Hoops2012-08-26 23:05:33 -0400
commitc15369c26f49204dc3a49d8215c1c21660a781f9 (patch)
tree202a21b6ba6a65381c697810869409daba30ee01
parentbb1e60e8b2f3bba06ae3b089097f94ea82a70c8a (diff)
parent3e2ff0a4437224a5d9de0b63d983e414b236992a (diff)
downloadscummvm-rg350-c15369c26f49204dc3a49d8215c1c21660a781f9.tar.gz
scummvm-rg350-c15369c26f49204dc3a49d8215c1c21660a781f9.tar.bz2
scummvm-rg350-c15369c26f49204dc3a49d8215c1c21660a781f9.zip
Merge remote branch 'upstream/master' into pegasus
-rw-r--r--video/coktel_decoder.cpp12
-rw-r--r--video/coktel_decoder.h9
2 files changed, 17 insertions, 4 deletions
diff --git a/video/coktel_decoder.cpp b/video/coktel_decoder.cpp
index 6a60b0e7d7..5d7efe87af 100644
--- a/video/coktel_decoder.cpp
+++ b/video/coktel_decoder.cpp
@@ -288,6 +288,14 @@ void CoktelDecoder::close() {
_isPaused = false;
}
+Audio::Mixer::SoundType CoktelDecoder::getSoundType() const {
+ return _soundType;
+}
+
+Audio::AudioStream *CoktelDecoder::getAudioStream() const {
+ return _audioStream;
+}
+
uint16 CoktelDecoder::getWidth() const {
return _width;
}
@@ -2847,11 +2855,11 @@ AdvancedVMDDecoder::VMDAudioTrack::VMDAudioTrack(VMDDecoder *decoder) : _decoder
}
Audio::Mixer::SoundType AdvancedVMDDecoder::VMDAudioTrack::getSoundType() const {
- return _decoder->_soundType;
+ return _decoder->getSoundType();
}
Audio::AudioStream *AdvancedVMDDecoder::VMDAudioTrack::getAudioStream() const {
- return _decoder->_audioStream;
+ return _decoder->getAudioStream();
}
} // End of namespace Video
diff --git a/video/coktel_decoder.h b/video/coktel_decoder.h
index 2a97eadf00..91d52b65e6 100644
--- a/video/coktel_decoder.h
+++ b/video/coktel_decoder.h
@@ -98,6 +98,8 @@ public:
/** Override the video's frame rate. */
void setFrameRate(Common::Rational frameRate);
+ /** Get the video's frame rate. */
+ Common::Rational getFrameRate() const;
/** Get the video's default X position. */
uint16 getDefaultX() const;
@@ -165,6 +167,11 @@ public:
/** Close the video. */
void close();
+ /** Get the Mixer SoundType audio is being played with. */
+ Audio::Mixer::SoundType getSoundType() const;
+ /** Get the AudioStream for the audio. */
+ Audio::AudioStream *getAudioStream() const;
+
uint16 getWidth() const;
uint16 getHeight() const;
virtual Graphics::PixelFormat getPixelFormat() const = 0;
@@ -237,8 +244,6 @@ protected:
bool evaluateSeekFrame(int32 &frame, int whence) const;
- Common::Rational getFrameRate() const;
-
// Surface management
bool hasSurface();
void createSurface();