diff options
author | Filippos Karapetis | 2012-09-10 23:42:09 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-09-11 00:34:29 +0300 |
commit | 455ad8a5bc4a443850847f960f8eeda262aee0bb (patch) | |
tree | ced15b518f646ffdbfa17080b953adcfbee8b7af /engines/toltecs | |
parent | c0a1d78e0e07ff308edee823e47c869efc2c64ca (diff) | |
download | scummvm-rg350-455ad8a5bc4a443850847f960f8eeda262aee0bb.tar.gz scummvm-rg350-455ad8a5bc4a443850847f960f8eeda262aee0bb.tar.bz2 scummvm-rg350-455ad8a5bc4a443850847f960f8eeda262aee0bb.zip |
TOLTECS: Read the sound rate for each video file
Diffstat (limited to 'engines/toltecs')
-rw-r--r-- | engines/toltecs/movie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toltecs/movie.cpp b/engines/toltecs/movie.cpp index 76d42ebf0a..d4e260dc0c 100644 --- a/engines/toltecs/movie.cpp +++ b/engines/toltecs/movie.cpp @@ -78,7 +78,7 @@ void MoviePlayer::playMovie(uint resIndex) { _vm->_arc->readUint32LE(); _vm->_arc->readUint32LE(); _framesPerSoundChunk = _vm->_arc->readUint32LE(); - _vm->_arc->readUint32LE(); + int rate = _vm->_arc->readUint32LE(); _vm->_sceneWidth = 640; _vm->_sceneHeight = 400; @@ -87,7 +87,7 @@ void MoviePlayer::playMovie(uint resIndex) { _vm->_cameraY = 0; _vm->_guiHeight = 0; - _audioStream = Audio::makeQueuingAudioStream(22050, false); + _audioStream = Audio::makeQueuingAudioStream(rate, false); _vm->_mixer->playStream(Audio::Mixer::kPlainSoundType, &_audioStreamHandle, _audioStream); |