From eaee951a2f4f6adf4be603a302134efa8c501183 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 26 Apr 2014 23:32:27 +0300 Subject: FULLPIPE: Implement Sound::setPanAndVolume() --- engines/fullpipe/sound.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp index 8c71446438..c337209cf6 100644 --- a/engines/fullpipe/sound.cpp +++ b/engines/fullpipe/sound.cpp @@ -136,7 +136,8 @@ void Sound::setPanAndVolumeByStaticAni() { } void Sound::setPanAndVolume(int vol, int pan) { - warning("STUB: Sound::setPanAndVolume"); + g_fp->_mixer->setChannelVolume(_handle, vol / 39); // 0..10000 + g_fp->_mixer->setChannelBalance(_handle, pan / 78); // -10000..10000 } void Sound::play(int flag) { -- cgit v1.2.3