aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/qt_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-16 01:49:29 +0000
committerMatthew Hoops2010-12-16 01:49:29 +0000
commit98a2bc8a9a59d3e77d0a6dd3baf526c63ac8feda (patch)
tree8e812057e70c359545d55332564768a220e38cbf /graphics/video/qt_decoder.h
parent1ead0d8436cdea9fd6a54af6bf749297afa75a17 (diff)
downloadscummvm-rg350-98a2bc8a9a59d3e77d0a6dd3baf526c63ac8feda.tar.gz
scummvm-rg350-98a2bc8a9a59d3e77d0a6dd3baf526c63ac8feda.tar.bz2
scummvm-rg350-98a2bc8a9a59d3e77d0a6dd3baf526c63ac8feda.zip
VIDEO: Remove the need to call updateAudioBuffer() externally for QuickTime
svn-id: r54929
Diffstat (limited to 'graphics/video/qt_decoder.h')
-rw-r--r--graphics/video/qt_decoder.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/graphics/video/qt_decoder.h b/graphics/video/qt_decoder.h
index 8c1ab0b27b..fcb75bb4f0 100644
--- a/graphics/video/qt_decoder.h
+++ b/graphics/video/qt_decoder.h
@@ -116,13 +116,7 @@ public:
// RewindableVideoDecoder API
void rewind();
- // TODO: This audio function need to be removed from the public and/or added to
- // the VideoDecoder API directly. I plan on replacing this function with something
- // that can figure out how much audio is needed instead of constantly keeping two
- // chunks in memory.
- void updateAudioBuffer();
-
-protected:
+private:
// This is the file handle from which data is read from. It can be the actual file handle or a decompressed stream.
Common::SeekableReadStream *_fd;
@@ -245,6 +239,8 @@ protected:
Audio::QueuingAudioStream *_audStream;
void startAudio();
void stopAudio();
+ void updateAudioBuffer();
+ uint32 getAudioChunkSampleCount(uint chunk);
int8 _audioStreamIndex;
uint _curAudioChunk;
Audio::SoundHandle _audHandle;