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

Fixes #1926 - wave init for voices 6 through 9. #1927

Merged
merged 1 commit into from
Jan 27, 2017

Conversation

Dunbaratu
Copy link
Member

The problem was caused by SoundMaker.SetWave().

It contained a protection check to try to prevent us from using
it to set a voice index number that doesn't exist. (i.e.
trying to call SetWave(11,"sine"), when there is no such thing
as voice 11).

The problem is that the check it was performing was comparing
the index to how many WAVEFORMS were defined, instead of
how many VOICES were. So because there are 5 defined waveforms,
but 10 defined voices, it refused to operate on voices 6,7,8,9.

The problem was caused by SoundMaker.SetWave().

It contained a protection check to try to prevent us from using
it to set a voice index number that doesn't exist.  (i.e.
trying to call SetWave(11,"sine"), when there is no such thing
as voice 11).

The problem is that the check it was performing was comparing
the index to how many WAVEFORMS were defined, instead of
how many VOICES were.  So because there are 5 defined waveforms,
but 10 defined voices, it refused to operate on voices 6,7,8,9.
@hvacengi hvacengi merged commit 42dc25f into develop Jan 27, 2017
@hvacengi hvacengi deleted the skid_voices_6_through_9 branch May 10, 2017 21:01
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.

2 participants