Adjusted volume for DOSBox OPL.
This commit is contained in:
@@ -45,6 +45,9 @@ endif
|
|||||||
ifndef X64
|
ifndef X64
|
||||||
X64 = n
|
X64 = n
|
||||||
endif
|
endif
|
||||||
|
ifndef RELEASE
|
||||||
|
RELEASE = n
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ static void sb_get_buffer_opl2(int32_t *buffer, int len, void *p)
|
|||||||
{
|
{
|
||||||
int32_t out_l, out_r;
|
int32_t out_l, out_r;
|
||||||
|
|
||||||
out_l = ((((sb->opl.buffer[c] * mixer->fm_l) >> 16) * 47000) >> 16);
|
out_l = ((((sb->opl.buffer[c] * mixer->fm_l) >> 16) * 55000) >> 16);
|
||||||
out_r = ((((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16) * 47000) >> 16);
|
out_r = ((((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16) * 55000) >> 16);
|
||||||
|
|
||||||
if (sb->mixer.filter)
|
if (sb->mixer.filter)
|
||||||
{
|
{
|
||||||
@@ -132,8 +132,8 @@ static void sb_get_buffer_opl3(int32_t *buffer, int len, void *p)
|
|||||||
{
|
{
|
||||||
int32_t out_l, out_r;
|
int32_t out_l, out_r;
|
||||||
|
|
||||||
out_l = ((((sb->opl.buffer[c] * mixer->fm_l) >> 16) * 47000) >> 16);
|
out_l = ((((sb->opl.buffer[c] * mixer->fm_l) >> 16) * (opl3_type ? 47000 : 55000)) >> 16);
|
||||||
out_r = ((((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16) * 47000) >> 16);
|
out_r = ((((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16) * (opl3_type ? 47000 : 55000)) >> 16);
|
||||||
|
|
||||||
if (sb->mixer.filter)
|
if (sb->mixer.filter)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user