joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.83k stars 383 forks source link

CD audio way too loud with SB16 #4807

Open The-Great-Sephiroth opened 9 months ago

The-Great-Sephiroth commented 9 months ago

Describe the bug

When using a GUS for games such as Redneck Rampage, you can set the CD audio volume in the shell with "mixer cdaudio 20:20" and then the music in-game is fine. However, when using both a GUS (for improved MIDI) and an SB16 (for games that do not support GUS as well as sound improvements in games), the mixer setting does nothing. CD music is so loud it hurts. Disabling the SB16 fixes the issue, but then many games won't run with sound either. Disabling the GUS and leaving the SB16 enabled does not seem to do anything good or bad.

The SB16 is on 220, 7, 1, 5. The GUS is on 240, 5, 3. The CDs are images mounted with IMGMOUNT, NOT a physical disc in a physical drive on the host.

Steps to reproduce the behaviour

Start DOSBox-X with a configuration that uses both the GUS and SB16 or just the SB16. Try to lower CD audio with "mixer cdaudio 5:5". Start your game that has CD audio. Redneck Rampage is PERFECT for this. Notice how loud it is.

Expected behavior

When you lower the CD audio levels with the mixer for CD images mounted with IMGMOUNT, I would expect the audio levels to decrease and not stay maxed out.

What operating system(s) this bug have occurred on?

Windows 10 22H2 64bit Pro

What version(s) of DOSBox-X have this bug?

2023.10.06 SDL1 Visual Studio 64bit

Used configuration

No response

Output log

No response

Additional information

Configuration: https://pastebin.com/SX9HnJ3y Log: https://pastebin.com/cdkd5v3G

Have you checked that no similar bug report(s) exist?

Code of Conduct & Contributing Guidelines

The-Great-Sephiroth commented 9 months ago

Just an update. Installing the SB16 tools (from my SB16 ISA floppies) and using the SB16 mixer tool adjusts the CD volume level, but not properly. Max volume on the slider is indeed max volume, but move it one notch lower and it is around 50%. Move it one more and it is silent. Anything lower than that does nothing. This may be due to real SB16 software working on an emulated card, but it's the only solution that works right now, even if it only works at full, half, or off.