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();
|
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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user