mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-28 07:16:53 +00:00
SLUDGE: Plugged in movie player
This commit is contained in:
parent
fe62ed883d
commit
32055ab0b2
@ -19,9 +19,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "sludge/sludge.h"
|
||||
#include "sludge/fileset.h"
|
||||
#include "sludge/movie.h"
|
||||
#include "sludge/newfatal.h"
|
||||
#include "sludge/sound.h"
|
||||
|
||||
#include "common/substream.h"
|
||||
#include "video/mkv_decoder.h"
|
||||
|
||||
namespace Sludge {
|
||||
|
||||
// sound_openal.cpp
|
||||
@ -317,9 +323,20 @@ ALuint feedAudio(void *userdata, ALubyte *data, ALuint length) {
|
||||
#endif
|
||||
|
||||
int playMovie(int fileNumber) {
|
||||
uint fsize;
|
||||
if (!(fsize = g_sludge->_resMan->openFileFromNum(fileNumber)))
|
||||
return fatal("playMovie(): Can't open movie");
|
||||
|
||||
Video::MKVDecoder decoder;
|
||||
|
||||
Common::SeekableReadStream *stream = g_sludge->_resMan->getData();
|
||||
Common::SeekableSubReadStream video(stream, stream->pos(), stream->pos() + fsize);
|
||||
|
||||
decoder.loadStream(&video);
|
||||
|
||||
#if 0
|
||||
if (specialSettings & SPECIAL_SILENT)
|
||||
return 0;
|
||||
return 0;
|
||||
|
||||
if (movieIsPlaying) return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user