mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
SWORD25: Implement TheoraDecoder::pauseVideoIntern()
This commit is contained in:
parent
14e1cc728f
commit
d1f907485e
@ -509,6 +509,11 @@ uint32 TheoraDecoder::getElapsedTime() const {
|
||||
return VideoDecoder::getElapsedTime();
|
||||
}
|
||||
|
||||
void TheoraDecoder::pauseVideoIntern(bool pause) {
|
||||
if (_audStream)
|
||||
g_system->getMixer()->pauseHandle(*_audHandle, pause);
|
||||
}
|
||||
|
||||
enum TheoraYUVBuffers {
|
||||
kBufferY = 0,
|
||||
kBufferU = 1,
|
||||
|
@ -86,13 +86,15 @@ public:
|
||||
|
||||
bool endOfVideo() const;
|
||||
|
||||
protected:
|
||||
void pauseVideoIntern(bool pause);
|
||||
|
||||
private:
|
||||
void queuePage(ogg_page *page);
|
||||
bool queueAudio();
|
||||
int bufferData();
|
||||
void translateYUVtoRGBA(th_ycbcr_buffer &YUVBuffer);
|
||||
|
||||
private:
|
||||
Common::SeekableReadStream *_fileStream;
|
||||
Graphics::Surface *_surface;
|
||||
Common::Rational _frameRate;
|
||||
|
Loading…
Reference in New Issue
Block a user