Skip to content

Commit 9f4cf0d

Browse files
committed
FMODSound and FMODQueuedEffect
1 parent 7596348 commit 9f4cf0d

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

bindings/2.2074/Extras.bro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
class FMODSound {
2-
2+
FMOD::Sound* m_sound;
3+
gd::string m_filePath;
4+
int m_length;
5+
int m_playCount;
6+
int m_playIndex;
7+
bool m_preloaded;
38
}
49

510
class AdvancedFollowInstance {

bindings/2.2074/GeometryDash.bro

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6149,7 +6149,7 @@ class FMODAudioEngine : cocos2d::CCNode {
61496149
static float pitchForIdx(int) = ios 0x13e698, win 0x569b0;
61506150
int playEffect(gd::string path, float speed, float p2, float volume) = win 0x56e10, imac 0x3d1ba0, m1 0x358870, ios 0x13ea50;
61516151
int playEffect(gd::string path) = win 0x56d90, m1 0x3587c0, imac 0x3d1b10, ios 0x13e9b4;
6152-
int playEffectAdvanced(gd::string path, float speed, float p2, float volume, float pitch, bool fastFourierTransform, bool reverb, int startMillis, int endMillis, int fadeIn, int fadeOut, bool loopEnabled, int p12, bool override, bool p14, int p15, int uniqueID, float minInterval, int sfxGroup) = win 0x56f00, imac 0x3cf550, m1 0x356ac0, ios 0x13d8c4;
6152+
int playEffectAdvanced(gd::string path, float speed, float p2, float volume, float pitch, bool fastFourierTransform, bool reverb, int startMillis, int endMillis, int fadeIn, int fadeOut, bool loopEnabled, int effectID, bool override, bool noPreload, int channelID, int uniqueID, float minInterval, int sfxGroup) = win 0x56f00, imac 0x3cf550, m1 0x356ac0, ios 0x13d8c4;
61536153
int playEffectAsync(gd::string path);
61546154
void playMusic(gd::string path, bool shouldLoop, float fadeInTime, int channel) = win 0x5a110, imac 0x3d4dc0, m1 0x35b20c, ios 0x1405b0;
61556155
FMODSound& preloadEffect(gd::string path) = win 0x59260, m1 0x3531c4, imac 0x3ca980, ios 0x13b644;
@@ -6229,7 +6229,7 @@ class FMODAudioEngine : cocos2d::CCNode {
62296229

62306230
// not sure on the name, the system is quite confusing
62316231
gd::unordered_map<int, FMODMusic> m_musicChannels;
6232-
gd::unordered_map<gd::string, FMODMusic> m_unkMap180;
6232+
gd::unordered_map<gd::string, FMODSound> m_unkMap180;
62336233
gd::unordered_set<gd::string> m_unkMap1c0;
62346234
float m_musicVolume;
62356235
float m_sfxVolume;
@@ -6326,7 +6326,26 @@ class FMODMusic {
63266326

63276327
[[link(android)]]
63286328
class FMODQueuedEffect {
6329-
PAD = win 0x70, android32 0x48, android64 0x58;
6329+
gd::string m_filePath;
6330+
float m_speed;
6331+
float m_unk024;
6332+
float m_volume;
6333+
float m_pitch;
6334+
bool m_fastFourierTransform;
6335+
bool m_reverb;
6336+
int m_start;
6337+
int m_end;
6338+
int m_fadeIn;
6339+
int m_fadeOut;
6340+
bool m_loop;
6341+
int m_effectID;
6342+
bool m_override;
6343+
bool m_unk04d;
6344+
int m_channelID;
6345+
FMOD::Sound* m_sound;
6346+
int m_uniqueID;
6347+
int m_minInterval;
6348+
int m_group;
63306349
}
63316350

63326351
[[link(android)]]
@@ -13408,7 +13427,7 @@ class InfoLayer : FLAlertLayer, LevelCommentDelegate, CommentUploadDelegate, FLA
1340813427
virtual void updateUserScoreFinished() = win 0x2b7730, imac 0x79d750, m1 0x6afcb0, ios 0x35294c;
1340913428
virtual void FLAlert_Clicked(FLAlertLayer*, bool) = win 0x2b5ce0, imac 0x79cb10, m1 0x6af108, ios 0x3523c0;
1341013429

13411-
void confirmReport(cocos2d::CCObject*) = win 0x2b5780, m1 0x6add08, imac 0x79b630;
13430+
void confirmReport(cocos2d::CCObject*) = win 0x2b5780, m1 0x6add08, imac 0x79b630, ios 0x3513b8;
1341213431
int getAccountID();
1341313432
int getID() {
1341413433
if(m_score) return m_score->m_userID;
@@ -14822,7 +14841,7 @@ class LevelSearchLayer : cocos2d::CCLayer, TextInputDelegate, FLAlertLayerProtoc
1482214841
void onSearchUser(cocos2d::CCObject* sender) = ios 0x56ddc, win 0x2fcdc0, m1 0x53fff0, imac 0x613d10;
1482314842
void onSpecialDemon(cocos2d::CCObject* sender) = win 0x2f9690, m1 0x540b44;
1482414843
void onStarAward(cocos2d::CCObject* sender);
14825-
void onSuggested(cocos2d::CCObject* sender) = win 0x2fc640;
14844+
void onSuggested(cocos2d::CCObject* sender) = win 0x2fc640, m1 0x54034c, imac 0x614030, ios 0x57194;
1482614845
void onTrending(cocos2d::CCObject* sender) = win 0x2fc700;
1482714846
void toggleDifficulty(cocos2d::CCObject*) = win 0x2fd3c0, imac 0x614340, m1 0x540640, ios 0x57610;
1482814847
void toggleDifficultyNum(int, bool) = win 0x2fd720, imac 0x614ae0, m1 0x540e20, ios 0x57ae8;
@@ -23859,8 +23878,8 @@ class UploadActionPopup : FLAlertLayer {
2385923878
}
2386023879
bool init(UploadPopupDelegate* delegate, gd::string str) = win 0x28dc60, imac 0x2908c0, m1 0x238df0;
2386123880
void onClose(cocos2d::CCObject* sender) = win 0x28e2d0;
23862-
void showFailMessage(gd::string message) = win 0x28e1d0, m1 0x2393d4, imac 0x290ee0;
23863-
void showSuccessMessage(gd::string message) = win 0x28e0c0, m1 0x23926c, imac 0x290d70;
23881+
void showFailMessage(gd::string message) = win 0x28e1d0, m1 0x2393d4, imac 0x290ee0, ios 0x2d85c8;
23882+
void showSuccessMessage(gd::string message) = win 0x28e0c0, m1 0x23926c, imac 0x290d70, ios 0x2d84d8;
2386423883

2386523884
UploadPopupDelegate* m_delegate;
2386623885
TextArea* m_textArea;

0 commit comments

Comments
 (0)