revert sound prescheduling behaviour (#195)
This commit is contained in:
parent
1f06ca9a1c
commit
3e9ac0292d
|
@ -52,7 +52,7 @@ namespace HeavenStudio.Util
|
||||||
{
|
{
|
||||||
playInstant = false;
|
playInstant = false;
|
||||||
scheduledPitch = cnd.musicSource.pitch;
|
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);
|
audioSource.PlayScheduled(startTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue