From: K.Ohta Date: Thu, 6 Dec 2018 16:34:44 +0000 (+0900) Subject: [VM][MSM5205] Adjust sound volume, add 6dB. X-Git-Url: http://git.osdn.net/view?p=csp-qt%2Fcommon_source_project-fm7.git;a=commitdiff_plain;h=7c496c9ad802eb4783424d507ea3fb9a89141b0d [VM][MSM5205] Adjust sound volume, add 6dB. [VM][SCSI_CDROM] Adjust sound volume, add 3dB. --- diff --git a/source/src/vm/msm5205.cpp b/source/src/vm/msm5205.cpp index 98f60a260..3d90c7648 100644 --- a/source/src/vm/msm5205.cpp +++ b/source/src/vm/msm5205.cpp @@ -325,8 +325,8 @@ void MSM5205::mix(int32_t* buffer, int cnt) void MSM5205::set_volume(int ch, int decibel_l, int decibel_r) { - volume_l = decibel_to_volume(decibel_l); - volume_r = decibel_to_volume(decibel_r); + volume_l = decibel_to_volume(decibel_l + 6.0); + volume_r = decibel_to_volume(decibel_r + 6.0); } #define STATE_VERSION 2 diff --git a/source/src/vm/scsi_cdrom.cpp b/source/src/vm/scsi_cdrom.cpp index 958c7103b..e9c8b0171 100644 --- a/source/src/vm/scsi_cdrom.cpp +++ b/source/src/vm/scsi_cdrom.cpp @@ -1333,8 +1333,8 @@ void SCSI_CDROM::mix(int32_t* buffer, int cnt) void SCSI_CDROM::set_volume(int ch, int decibel_l, int decibel_r) { - volume_l = decibel_to_volume(decibel_l); - volume_r = decibel_to_volume(decibel_r); + volume_l = decibel_to_volume(decibel_l + 3.0); + volume_r = decibel_to_volume(decibel_r + 3.0); } void SCSI_CDROM::set_volume(int volume)