SWORD25: Implement TheoraDecoder::pauseVideoIntern()

This commit is contained in:
Matthew Hoops 2011-05-18 10:00:35 -04:00
parent 14e1cc728f
commit d1f907485e
2 changed files with 8 additions and 1 deletions

View File

@ -509,6 +509,11 @@ uint32 TheoraDecoder::getElapsedTime() const {
return VideoDecoder::getElapsedTime(); return VideoDecoder::getElapsedTime();
} }
void TheoraDecoder::pauseVideoIntern(bool pause) {
if (_audStream)
g_system->getMixer()->pauseHandle(*_audHandle, pause);
}
enum TheoraYUVBuffers { enum TheoraYUVBuffers {
kBufferY = 0, kBufferY = 0,
kBufferU = 1, kBufferU = 1,

View File

@ -86,13 +86,15 @@ public:
bool endOfVideo() const; bool endOfVideo() const;
protected:
void pauseVideoIntern(bool pause);
private: private:
void queuePage(ogg_page *page); void queuePage(ogg_page *page);
bool queueAudio(); bool queueAudio();
int bufferData(); int bufferData();
void translateYUVtoRGBA(th_ycbcr_buffer &YUVBuffer); void translateYUVtoRGBA(th_ycbcr_buffer &YUVBuffer);
private:
Common::SeekableReadStream *_fileStream; Common::SeekableReadStream *_fileStream;
Graphics::Surface *_surface; Graphics::Surface *_surface;
Common::Rational _frameRate; Common::Rational _frameRate;