Skip to content

Commit

Permalink
fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhXd committed Dec 24, 2024
1 parent 567c1c6 commit b66bb7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
"sfx-semitone": {
"name": "Pitch of the sounds",
"description": "Determines the pitch of click/release sounds using semitone. The Default semitones is set 0 (2 semitones = 1 Octave)",
"description": "Determines the pitch of click/release sounds using semitones. The Default semitones is set 0 (2 semitones = 1 Octave)",
"type": "int",
"default": 0,
"min": -6,
Expand Down
2 changes: 0 additions & 2 deletions src/StaticClasses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ class SoundCache {
if (semitone < 0) {
semitone = std::pow(2,semitone); // fix negtive octave
} else {

semitone+=1;
}
pitchShifterDSP->setParameterFloat(FMOD_DSP_PITCHSHIFT_PITCH, semitone); // semitone is half a octave
FMODAudioEngine::sharedEngine()->m_system->update();
}

~SoundCache() {
Expand Down

0 comments on commit b66bb7c

Please sign in to comment.