extend multisound with pitch, volume, looping, offset in seconds

This commit is contained in:
minenice55
2022-03-20 19:46:12 -04:00
parent d404b4c277
commit 32460a257f
2 changed files with 19 additions and 5 deletions

View File

@ -234,6 +234,12 @@ namespace HeavenStudio
return secPerBeat * beat;
}
// convert real seconds to beats
public float GetRestFromRealTime(float seconds)
{
return seconds/secPerBeat;
}
public void SetBpm(float bpm)
{
this.songBpm = bpm;