aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth/fmtowns_pc98/towns_euphony.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2010-08-04 16:53:09 +0000
committerFlorian Kagerer2010-08-04 16:53:09 +0000
commite5ffc7847cb70f792b4658aa032959949e849669 (patch)
tree0bba686f2c68bc0c15b5b03e532741299253d842 /sound/softsynth/fmtowns_pc98/towns_euphony.cpp
parentfbd7c8456705442f12c9c798c58ec146f0a85063 (diff)
downloadscummvm-rg350-e5ffc7847cb70f792b4658aa032959949e849669.tar.gz
scummvm-rg350-e5ffc7847cb70f792b4658aa032959949e849669.tar.bz2
scummvm-rg350-e5ffc7847cb70f792b4658aa032959949e849669.zip
AUDIO: Implement volume and balance control for the AudioCD manager (needed for music fading in Kyra 1 FM-Towns and probably other FM-Towns games). This addition applies to emulated CD audio only for now. I haven't found a way to implement this for real CDs yet. SDL doesn't seem to support this (but it might be just me? If anyone knows more about this, just tell me).
svn-id: r51741
Diffstat (limited to 'sound/softsynth/fmtowns_pc98/towns_euphony.cpp')
-rw-r--r--sound/softsynth/fmtowns_pc98/towns_euphony.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/softsynth/fmtowns_pc98/towns_euphony.cpp b/sound/softsynth/fmtowns_pc98/towns_euphony.cpp
index 13120df17a..e23d5bcb36 100644
--- a/sound/softsynth/fmtowns_pc98/towns_euphony.cpp
+++ b/sound/softsynth/fmtowns_pc98/towns_euphony.cpp
@@ -66,8 +66,6 @@ bool TownsEuphonyDriver::init() {
reset();
- cdaSetVolume(1, 118, 118);
-
return true;
}
@@ -194,7 +192,7 @@ bool TownsEuphonyDriver::soundEffectIsPlaying(int chan) {
return _intf->callback(40, chan) ? true : false;
}
-void TownsEuphonyDriver::chanStereo(int chan, int mode) {
+void TownsEuphonyDriver::chanPanPos(int chan, int mode) {
_intf->callback(3, chan, mode);
}
@@ -206,8 +204,8 @@ void TownsEuphonyDriver::chanVolume(int chan, int vol) {
_intf->callback(8, chan, vol);
}
-void TownsEuphonyDriver::cdaSetVolume(int a, int vol1, int vol2) {
- _intf->callback(67, a, vol1, vol2);
+void TownsEuphonyDriver::cdaSetVolume(int mode, int volLeft, int volRight) {
+ _intf->callback(67, mode, volLeft, volRight);
}
int TownsEuphonyDriver::chanEnable(int tableEntry, int val) {