mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-30 19:41:14 +00:00
revert sound prescheduling behaviour (#195)
This commit is contained in:
parent
1f06ca9a1c
commit
3e9ac0292d
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ namespace HeavenStudio.Util
|
|||
{
|
||||
playInstant = false;
|
||||
scheduledPitch = cnd.musicSource.pitch;
|
||||
startTime = cnd.dspStartTimeAsDouble + ((cnd.GetSongPosFromBeat(beat - cnd.startBeatAsDouble))/(double)scheduledPitch);
|
||||
startTime = (AudioSettings.dspTime + (cnd.GetSongPosFromBeat(beat) - cnd.songPositionAsDouble)/(double)scheduledPitch);
|
||||
audioSource.PlayScheduled(startTime);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue