mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
VOYEUR: rename audio and video track access functions
This commit is contained in:
parent
118e7395c3
commit
864b97eb49
@ -115,7 +115,7 @@ void RL2Decoder::copyDirtyRectsToBuffer(uint8 *dst, uint pitch) {
|
||||
|
||||
void RL2Decoder::readNextPacket() {
|
||||
int frameNumber = getCurFrame();
|
||||
RL2AudioTrack *audioTrack = RL2Decoder::getAudioTrack();
|
||||
RL2AudioTrack *audioTrack = getRL2AudioTrack();
|
||||
|
||||
// Handle queueing sound data
|
||||
if (_soundFrameNumber == -1)
|
||||
@ -464,7 +464,7 @@ void RL2Decoder::play(VoyeurEngine *vm, int resourceOffset,
|
||||
int paletteStart = getPaletteStart();
|
||||
int paletteCount = getPaletteCount();
|
||||
|
||||
PictureResource videoFrame(getVideoTrack()->getBackSurface());
|
||||
PictureResource videoFrame(getRL2VideoTrack()->getBackSurface());
|
||||
int picCtr = 0;
|
||||
while (!vm->shouldQuit() && !endOfVideo() && !vm->_eventsManager->_mouseClicked) {
|
||||
if (hasDirtyPalette()) {
|
||||
|
@ -186,8 +186,8 @@ public:
|
||||
* @param imgPos Position to draw image data
|
||||
*/
|
||||
void play(VoyeurEngine *vm, int resourceOffset = 0, byte *frames = NULL, byte *imgPos = NULL);
|
||||
RL2VideoTrack *getVideoTrack() { return _videoTrack; }
|
||||
virtual RL2AudioTrack *getAudioTrack() { return _audioTrack; }
|
||||
RL2VideoTrack *getRL2VideoTrack() { return _videoTrack; }
|
||||
RL2AudioTrack *getRL2AudioTrack() { return _audioTrack; }
|
||||
};
|
||||
|
||||
} // End of namespace Voyeur
|
||||
|
@ -751,7 +751,7 @@ void VoyeurEngine::doGossip() {
|
||||
pal->startFade();
|
||||
|
||||
// Transfer initial background to video decoder
|
||||
PictureResource videoFrame(decoder.getVideoTrack()->getBackSurface());
|
||||
PictureResource videoFrame(decoder.getRL2VideoTrack()->getBackSurface());
|
||||
bgPic->_bounds.moveTo(0, 0);
|
||||
_graphicsManager->sDrawPic(bgPic, &videoFrame, Common::Point(0, 0));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user