Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
change music sync threshold to 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Oct 19, 2023
1 parent afa3c32 commit 4f26525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooked/play_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class $modify(ModifiedPlayLayer, PlayLayer) {
float offset = m_levelSettings->m_songOffset * 1000;

engine->m_globalChannel->getPosition(&p, FMOD_TIMEUNIT_MS);
if (std::abs((int)(f * 1000) - (int)p + offset) > 60 && !m_hasCompletedLevel) {
if (std::abs((int)(f * 1000) - (int)p + offset) > 100 && !m_hasCompletedLevel) {
engine->m_globalChannel->setPosition(
static_cast<uint32_t>(f * 1000) + static_cast<uint32_t>(offset), FMOD_TIMEUNIT_MS);
}
Expand Down

0 comments on commit 4f26525

Please sign in to comment.