11// / @todo: Fix this code - on Windows its fine, but on Android it bugs out.
22// / I'm not going to work on this right now, but I'll leave it here for future reference. (@OmgRod)
33
4- #include < Geode/Geode.hpp>
5- #include < Geode/modify/FMODAudioEngine.hpp>
4+ // #include <Geode/Geode.hpp>
5+ // #include <Geode/modify/FMODAudioEngine.hpp>
66
7- using namespace geode ::prelude;
7+ // using namespace geode::prelude;
88
9- class $modify(MyFMODAudioEngine, FMODAudioEngine) {
10- public:
11- void playMusic (gd::string name, bool shouldLoop, float fadeInTime, int channel) {
12- log::debug (" Playing music: {}" , name);
13- std::string newName = " ninxout.wav" _spr;
14- std::string nameStr = name.c_str ();
15- if (nameStr.find (" menuLoop.mp3" ) != std::string::npos && Mod::get ()->getSettingValue <bool >(" menu-loop" )) {
16- name = newName;
17- log::debug (" Changed music to: {}" , name);
18- }
9+ // class $modify(MyFMODAudioEngine, FMODAudioEngine) {
10+ // public:
11+ // void playMusic(gd::string name, bool shouldLoop, float fadeInTime, int channel) {
12+ // log::debug("Playing music: {}", name);
13+ // std::string newName = "ninxout.wav"_spr;
14+ // std::string nameStr = name.c_str();
15+ // if (nameStr.find("menuLoop.mp3") != std::string::npos && Mod::get()->getSettingValue<bool>("menu-loop")) {
16+ // name = newName;
17+ // log::debug("Changed music to: {}", name);
18+ // }
1919
20- FMODAudioEngine::playMusic (name, shouldLoop, fadeInTime, channel);
21- }
22- };
20+ // FMODAudioEngine::playMusic(name, shouldLoop, fadeInTime, channel);
21+ // }
22+ // };
0 commit comments