Sound Blaster volume balancing and filter changes. Patch from James-F.

This commit is contained in:
SarahW 2017-06-02 19:46:00 +01:00
commit 71055ef19c
3 changed files with 16 additions and 16 deletions

View file

@ -43,9 +43,9 @@ typedef struct sb_t
static int sb_att[]=
{
310,368,437,520,618,735,873,1038,1234,1467,1743,2072,2463,2927,3479,
4134,4914,5840,6941,8250,9805,11653,13850,16461,19564,23252,27635,32845,
39036,46395,55140,65535
50,65,82,103,130,164,207,260,328,413,520,655,825,1038,1307,
1645,2072,2608,3283,4134,5205,6553,8250,10385,13075,16461,20724,26089,
32845,41349,52055,65535
};
static void sb_get_buffer_opl2(int32_t *buffer, int len, void *p)
@ -61,8 +61,8 @@ static void sb_get_buffer_opl2(int32_t *buffer, int len, void *p)
{
int32_t out_l, out_r;
out_l = ((sb->opl.buffer[c] * mixer->fm_l) >> 16);
out_r = ((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16);
out_l = ((((sb->opl.buffer[c] * mixer->fm_l) >> 16) * 55000) >> 16);
out_r = ((((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16) * 55000) >> 16);
if (sb->mixer.filter)
{
@ -112,8 +112,8 @@ static void sb_get_buffer_opl3(int32_t *buffer, int len, void *p)
{
int32_t out_l, out_r;
out_l = ((sb->opl.buffer[c] * mixer->fm_l) >> 16);
out_r = ((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16);
out_l = ((((sb->opl.buffer[c] * mixer->fm_l) >> 16) * 55000) >> 16);
out_r = ((((sb->opl.buffer[c + 1] * mixer->fm_r) >> 16) * 55000) >> 16);
if (sb->mixer.filter)
{