Skip to content

Commit

Permalink
windows only bug?
Browse files Browse the repository at this point in the history
Signed-off-by: Erymanthus[#5074] | (u/)RayDeeUx <[email protected]>
  • Loading branch information
RayDeeUx committed Sep 5, 2024
1 parent ecb5238 commit f73b606
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FMODAudioEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class $modify(MenuLoopFMODHook, FMODAudioEngine) {
log::info("attempted to loop menu music on channel zero! see if on windows or not. aborting early.");
return;
}
#ifdef GEODE_IS_WINDOWS
if (!SongManager::get().getCalledOnce()) SongManager::get().setCalledOnce(true);
#endif
return FMODAudioEngine::get()->playMusic(path, desiredShouldLoop, 0.0f, channel);
}
FMODAudioEngine::get()->playMusic(path, desiredShouldLoop, fadeInTime, channel);
Expand Down

0 comments on commit f73b606

Please sign in to comment.