mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-25 19:15:16 +00:00
revert sound prescheduling behaviour (#195)
This commit is contained in:
parent
5ddb96bcb1
commit
807bd7f05a
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