// // FMODAudioEngine::setChannelPitch from 0x10013b2dc to 0x10013b3e8 (268 bytes) // // 2 xrefs: // > FMODAudioEngine::updateChannelTweens @ 0x1001397d0 // > FMODAudioEngine::updateChannel @ 0x10013c874 // // 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 // void __fastcall FMODAudioEngine::setChannelPitch(FMODAudioEngine *a1, int a2, AudioTargetType a3, float a4) { FMOD::ChannelGroup *ChannelGroup; // x0 FMOD::ChannelControl *v7; // x0 int MusicChannelID; // w1 int v9; // [xsp+0h] [xbp-30h] BYREF int *v10; // [xsp+8h] [xbp-28h] BYREF v9 = a2; if ( a3 == MusicChannel ) { v10 = &v9; *((float *)sub_10001D150( (unsigned __int64)&a1->m_audioState.m_pitchForMusicChannels, &v9, (__int64)&unk_100637FD3, &v10) + 5) = a4; MusicChannelID = FMODAudioEngine::getMusicChannelID(a1, v9); goto LABEL_6; } if ( a3 != SFXGroup ) { v10 = &v9; *((float *)sub_10001D150( (unsigned __int64)&a1->m_audioState.m_pitchForEffectChannels, &v9, (__int64)&unk_100637FD3, &v10) + 5) = a4; MusicChannelID = v9; LABEL_6: v7 = FMODAudioEngine::channelForChannelID(a1, MusicChannelID); if ( !v7 ) return; goto LABEL_7; } v10 = &v9; *((float *)sub_10001D150( (unsigned __int64)&a1->m_audioState.m_pitchForEffectGroups, &v9, (__int64)&unk_100637FD3, &v10) + 5) = a4; ChannelGroup = FMODAudioEngine::getChannelGroup(a1, v9, 0); FMOD::ChannelControl::setPitch(ChannelGroup, a4); v7 = FMODAudioEngine::getChannelGroup(a1, v9, 1); LABEL_7: FMOD::ChannelControl::setPitch(v7, a4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source