Skip to content

Fix compatibility with EZ2DJ titles.#7

Open
ben-rnd wants to merge 5 commits into
decafcode:masterfrom
ben-rnd:master
Open

Fix compatibility with EZ2DJ titles.#7
ben-rnd wants to merge 5 commits into
decafcode:masterfrom
ben-rnd:master

Conversation

@ben-rnd
Copy link
Copy Markdown

@ben-rnd ben-rnd commented Apr 20, 2026

I've made some changes that fixed missing/broken functionality that prevented this from working with ez2dj

ben-rnd added 5 commits April 19, 2026 12:03
SetVolume(0) should set max volume not mute. Per docs volume range is -10000 (min) to 0 (max):  https://learn.microsoft.com/en-us/previous-versions/windows/desktop/mt708939(v=vs.85)#remarks
EZ2DJ uses looping streams as a circular buffer for playing longer audio files
for most BGMs. looping stream was being removed before next write, causing audio to go silent.
As per dsound docs a looping buffer should only stop when stopped explicitly.

https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ee418074(v=vs.85)#parameters
EZ2DJ likes to spam play() on a few buffers. this was causing terrible audio most notably on the name entry screen.  Per direct sound docs, subsequent play()'s should only update the flag.

https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ee418074(v=vs.85)#remarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant