// // FMODAudioEngine::setChannelPitch from 0x1003e3420 to 0x1003e3544 (292 bytes) // // 2 xrefs: // > FMODAudioEngine::updateChannelTweens @ 0x1003df926 // > FMODAudioEngine::updateChannel @ 0x1003e621f // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall FMODAudioEngine::setChannelPitch(FMODAudioEngine *a1, int a2, AudioTargetType a3, float a4) { float *v4; // rax FMOD::ChannelGroup *ChannelGroup; // rax FMOD::ChannelControl *v6; // rax float *v7; // rax int MusicChannelID; // eax float *v9; // rax int *v10; // [rsp+0h] [rbp-20h] BYREF int v11; // [rsp+Ch] [rbp-14h] BYREF float v12; // [rsp+10h] [rbp-10h] v11 = a2; v12 = a4; if ( a3 == MusicChannel ) { v10 = &v11; v7 = (float *)sub_100174230( (float *)&a1->m_audioState.m_pitchForMusicChannels, &v11, *(__m128 *)&a4, (__int64)&unk_10081B0A2, &v10); v7[5] = v12; MusicChannelID = FMODAudioEngine::getMusicChannelID(a1, v11); v6 = FMODAudioEngine::channelForChannelID(a1, MusicChannelID); if ( !v6 ) return; } else if ( a3 == SFXGroup ) { v10 = &v11; v4 = (float *)sub_100174230( (float *)&a1->m_audioState.m_pitchForEffectGroups, &v11, *(__m128 *)&a4, (__int64)&unk_10081B0A2, &v10); v4[5] = v12; ChannelGroup = FMODAudioEngine::getChannelGroup(a1, v11, 0); FMOD::ChannelControl::setPitch(ChannelGroup, v12); v6 = FMODAudioEngine::getChannelGroup(a1, v11, 1); } else { v10 = &v11; v9 = (float *)sub_100174230( (float *)&a1->m_audioState.m_pitchForEffectChannels, &v11, *(__m128 *)&a4, (__int64)&unk_10081B0A2, &v10); v9[5] = v12; v6 = FMODAudioEngine::channelForChannelID(a1, v11); if ( !v6 ) return; } FMOD::ChannelControl::setPitch(v6, v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source