| 90 | } |
| 91 | |
| 92 | void LevelDebugLayer::playMusic(float dt) |
| 93 | { |
| 94 | #if (TARGET_PLATFORM == AX_PLATFORM_WIN32) |
| 95 | char appdata[256]; |
| 96 | GetFolderLocation(CSIDL_LOCAL_APPDATA, appdata); |
| 97 | auto path = fmt::format("{}/GeometryDash/{}.mp3", appdata, songid); |
| 98 | audioId = AudioEngine::play2d(path, true, 0.2f); |
| 99 | scheduleOnce([&](float dt) { AudioEngine::setCurrentTime(audioId, offset); }, 1, "time"); |
| 100 | #endif |
| 101 | } |
| 102 | |
| 103 | bool LevelDebugLayer::init(GJGameLevel* level) |
| 104 | { |
nothing calls this directly
no test coverage detected