aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-04-26 23:32:27 +0300
committerEugene Sandulenko2014-04-26 23:32:27 +0300
commiteaee951a2f4f6adf4be603a302134efa8c501183 (patch)
treea2909eebebae1fbc53488bd3214b3837a465d9a0 /engines
parent64800b2ac286d5aebc3ae16b60f651cf92db35b6 (diff)
downloadscummvm-rg350-eaee951a2f4f6adf4be603a302134efa8c501183.tar.gz
scummvm-rg350-eaee951a2f4f6adf4be603a302134efa8c501183.tar.bz2
scummvm-rg350-eaee951a2f4f6adf4be603a302134efa8c501183.zip
FULLPIPE: Implement Sound::setPanAndVolume()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/sound.cpp3
1 files changed, 2 insertions, 1 deletions
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) {