Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OPL Synth note cutoffs and issues after removal of MusLib #471

Merged
merged 1 commit into from Apr 30, 2018

Conversation

jkoncick
Copy link
Contributor

This should fix bug reported in https://forum.zdoom.org/viewtopic.php?
f=104&t=56682.
There were two problems:

  1. Algorithm to select a free voice was not appropriate. Changed to a
    simple "least-recently-freed voice" algorithm.
  2. Sustained voices were treated as used voices and never got replaced.
    Now sustained voices are preferentially replaced when there are no free
    voices.

This should fix bug reported in https://forum.zdoom.org/viewtopic.php?
f=104&t=56682.
There were two problems:
1. Algorithm to select a free voice was not appropriate. Changed to a
simple "least-recently-freed voice" algorithm.
2. Sustained voices were treated as used voices and never got replaced.
Now sustained voices are preferentially replaced when there are no free
voices.
@coelckers coelckers merged commit 07586af into ZDoom:master Apr 30, 2018
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.

None yet

2 participants