Skip to content

Commit

Permalink
oops :3
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Dec 22, 2024
1 parent 9e3259b commit 29f6809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hacks/PitchShifter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void updatePitch()

#ifdef GEODE_IS_IOS
reinterpret_cast<FMOD_RESULT(__cdecl*)(FMOD::System*, FMOD_DSP_TYPE, FMOD::DSP**)>(geode::base::get() + OffsetManager::get()->offsetForFunction(FunctionType::FMOD__System__createDSPByType))(FMODAudioEngine::sharedEngine()->m_system, FMOD_DSP_TYPE_PITCHSHIFT, &pitchDSP); //createDSPByType
reinterpret_cast<FMOD_RESULT(__cdecl*)(FMOD::ChannelControl*, int, FMOD::DSP*)>(geode::base::get() + OffsetManager::get()->offsetForFunction(FunctionType::FMOD::ChannelControl::addDSP))(masterGroup, 0, pitchDSP); //addDSP
reinterpret_cast<FMOD_RESULT(__cdecl*)(FMOD::ChannelControl*, int, FMOD::DSP*)>(geode::base::get() + OffsetManager::get()->offsetForFunction(FunctionType::FMOD__ChannelControl__addDSP))(masterGroup, 0, pitchDSP); //addDSP
#else
FMODAudioEngine::sharedEngine()->m_system->createDSPByType(FMOD_DSP_TYPE_PITCHSHIFT, &pitchDSP);
masterGroup->addDSP(0, pitchDSP);
Expand Down

0 comments on commit 29f6809

Please sign in to comment.