mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
TOLTECS: Fixed compilation
This commit is contained in:
parent
cb5c0e6986
commit
a0432fd546
@ -78,7 +78,7 @@ void MoviePlayer::playMovie(uint resIndex) {
|
||||
_vm->_cameraX = 0;
|
||||
_vm->_cameraY = 0;
|
||||
|
||||
_audioStream = Audio::makeAppendableAudioStream(22050, Audio::Mixer::FLAG_UNSIGNED);
|
||||
_audioStream = Audio::makeQueuingAudioStream(22050, false);
|
||||
|
||||
_vm->_mixer->playInputStream(Audio::Mixer::kPlainSoundType, &_audioStreamHandle, _audioStream);
|
||||
|
||||
@ -197,7 +197,7 @@ void MoviePlayer::fetchAudioChunks() {
|
||||
if (chunkType == 4) {
|
||||
byte *chunkBuffer = new byte[chunkSize];
|
||||
_vm->_arc->read(chunkBuffer, chunkSize);
|
||||
_audioStream->queueBuffer(chunkBuffer, chunkSize);
|
||||
_audioStream->queueBuffer(chunkBuffer, chunkSize, Audio::Mixer::FLAG_UNSIGNED);
|
||||
chunkBuffer = NULL;
|
||||
prefetchChunkCount++;
|
||||
_soundChunkFramesLeft += _framesPerSoundChunk;
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
|
||||
protected:
|
||||
ToltecsEngine *_vm;
|
||||
Audio::AppendableAudioStream *_audioStream;
|
||||
Audio::QueuingAudioStream *_audioStream;
|
||||
Audio::SoundHandle _audioStreamHandle;
|
||||
|
||||
uint32 _chunkCount, _frameCount, _lastPrefetchOfs;
|
||||
|
@ -150,7 +150,7 @@ Common::Error ToltecsEngine::run() {
|
||||
|
||||
syncSoundSettings();
|
||||
|
||||
#define TEST_MENU
|
||||
//#define TEST_MENU
|
||||
#ifdef TEST_MENU
|
||||
_screen->registerFont(0, 0x0D);
|
||||
_screen->registerFont(1, 0x0E);
|
||||
@ -167,9 +167,10 @@ Common::Error ToltecsEngine::run() {
|
||||
updateScreen();
|
||||
}
|
||||
*/
|
||||
return Common::kNoError;
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
_script->loadScript(0, 0);
|
||||
_script->runScript(0);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user