Menu

#226 CD audio channel levelling support

closed
Qbix
None
5
2012-09-26
2010-03-18
No

One limitation of DOSBox is that games and other apps cannot adjust the CD audio level. While not usually a problem, some games use CD audio levelling for things such as fading out, or muting as an alternative to pausing. However, since they cannot control the CD audio level under DOSBox, the audio continues to play at full volume.

Anyone who's played the CD version of Pinball Illusions will know about this; the CD music doesn't stop, and as a result the game ends up playing the module music and the CD music at the same time.

This is a patch I've written to solve this problem.

In the standard version of DOSBox, any instructions to control the CD audio channels are simply ignored.

But with this patch, when the same instruction is called, it changes the "CDAUDIO" value in the mixer, allowing the CD audio levels to be adjusted as intended.

The patch includes a switch in the config file, so that if you wish you can turn it off and it works as in the standard version of DOSBox.

Discussion

  • Matthew Daniels

    Matthew Daniels - 2010-03-18

    Enables games to set CD audio level

     
  • Qbix

    Qbix - 2010-06-05

    Superseeded by the version of ripsaw on vogons.

     
  • Sardoc

    Sardoc - 2012-09-26

    I've just found this patch, but... How do I integrate it into DOSBox? I'm not a developer so I don't know anything about it. Is there an easy way for noobs to do this?

    EDIT: Or maybe there is a version which already contains this patch?

     

    Last edit: Sardoc 2012-09-26

Log in to post a comment.