diff options
author | Paul Gilbert | 2014-08-30 20:50:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-30 20:50:25 -0400 |
commit | 78bf011a8b5f9eb25c2b231752c30a3ca239cbc7 (patch) | |
tree | 8bdbccc7f11026f401421a0282950b88c050c9c0 /engines/access | |
parent | c092e0665271541719d34b40da5d856142c42a8e (diff) | |
download | scummvm-rg350-78bf011a8b5f9eb25c2b231752c30a3ca239cbc7.tar.gz scummvm-rg350-78bf011a8b5f9eb25c2b231752c30a3ca239cbc7.tar.bz2 scummvm-rg350-78bf011a8b5f9eb25c2b231752c30a3ca239cbc7.zip |
ACCESS: Fix playSound stub
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/sound.cpp | 6 | ||||
-rw-r--r-- | engines/access/sound.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/access/sound.cpp b/engines/access/sound.cpp index 0cdb380bb9..001d2f325b 100644 --- a/engines/access/sound.cpp +++ b/engines/access/sound.cpp @@ -55,11 +55,11 @@ Resource *SoundManager::loadSound(int fileNum, int subfile) { } void SoundManager::playSound(int soundIndex) { - int idx = _soundPriority[soundIndex]; - playSound(_soundTable[idx]); + int priority = _soundPriority[soundIndex]; + playSound(_soundTable[soundIndex], priority); } -void SoundManager::playSound(Resource *res) { +void SoundManager::playSound(Resource *res, int priority) { /* Audio::QueuingAudioStream *audioStream = Audio::makeQueuingAudioStream(22050, false); audioStream->queueBuffer(data, size, DisposeAfterUse::YES, 0); diff --git a/engines/access/sound.h b/engines/access/sound.h index ad1688a5a9..3d967c6af4 100644 --- a/engines/access/sound.h +++ b/engines/access/sound.h @@ -41,7 +41,7 @@ private: void clearSounds(); - void playSound(Resource *res); + void playSound(Resource *res, int priority); public: Common::Array<Resource *> _soundTable; Common::Array<int> _soundPriority; |