From 78bf011a8b5f9eb25c2b231752c30a3ca239cbc7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 30 Aug 2014 20:50:25 -0400 Subject: ACCESS: Fix playSound stub --- engines/access/sound.cpp | 6 +++--- engines/access/sound.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/access') 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 _soundTable; Common::Array _soundPriority; -- cgit v1.2.3