mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-13 21:25:09 +00:00
oops forgot a small thing
includes example using a fan club sound
This commit is contained in:
parent
87bc5c9fff
commit
7d580fb132
2 changed files with 6 additions and 6 deletions
|
@ -306,8 +306,8 @@ namespace HeavenStudio.Games
|
||||||
if (!noSound)
|
if (!noSound)
|
||||||
MultiSound.Play(new MultiSound.Sound[] {
|
MultiSound.Play(new MultiSound.Sound[] {
|
||||||
new MultiSound.Sound("fanClub/arisa_ka_jp", beat),
|
new MultiSound.Sound("fanClub/arisa_ka_jp", beat),
|
||||||
new MultiSound.Sound("fanClub/arisa_mo_jp", beat + 0.5f),
|
new MultiSound.Sound("fanClub/arisa_mo_jp", beat + 0.5f, offset: 0.07407407f),
|
||||||
new MultiSound.Sound("fanClub/arisa_ne_jp", beat + 1f),
|
new MultiSound.Sound("fanClub/arisa_ne_jp", beat + 1f, offset: 0.07407407f),
|
||||||
});
|
});
|
||||||
|
|
||||||
responseToggle = true;
|
responseToggle = true;
|
||||||
|
@ -355,8 +355,8 @@ namespace HeavenStudio.Games
|
||||||
if (noSound) return;
|
if (noSound) return;
|
||||||
MultiSound.Play(new MultiSound.Sound[] {
|
MultiSound.Play(new MultiSound.Sound[] {
|
||||||
new MultiSound.Sound("fanClub/arisa_ka_jp", beat),
|
new MultiSound.Sound("fanClub/arisa_ka_jp", beat),
|
||||||
new MultiSound.Sound("fanClub/arisa_mo_jp", beat + 0.5f),
|
new MultiSound.Sound("fanClub/arisa_mo_jp", beat + 0.5f, offset: 0.07407407f),
|
||||||
new MultiSound.Sound("fanClub/arisa_ne_jp", beat + 1f),
|
new MultiSound.Sound("fanClub/arisa_ne_jp", beat + 1f, offset: 0.07407407f),
|
||||||
}, forcePlay:true);
|
}, forcePlay:true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,9 +58,9 @@ namespace HeavenStudio.Util
|
||||||
if (songPositionInBeats >= sounds[i].beat - Conductor.instance.GetRestFromRealTime(sounds[i].offset) && index == i)
|
if (songPositionInBeats >= sounds[i].beat - Conductor.instance.GetRestFromRealTime(sounds[i].offset) && index == i)
|
||||||
{
|
{
|
||||||
if (game)
|
if (game)
|
||||||
Jukebox.PlayOneShotGame(sounds[i].name, sounds[i].beat, sounds[i].pitch, sounds[i].volume, sounds[i].looping, forcePlay);
|
Jukebox.PlayOneShotGame(sounds[i].name, sounds[i].beat - Conductor.instance.GetRestFromRealTime(sounds[i].offset), sounds[i].pitch, sounds[i].volume, sounds[i].looping, forcePlay);
|
||||||
else
|
else
|
||||||
Jukebox.PlayOneShot(sounds[i].name, sounds[i].beat, sounds[i].pitch, sounds[i].volume, sounds[i].looping);
|
Jukebox.PlayOneShot(sounds[i].name, sounds[i].beat - Conductor.instance.GetRestFromRealTime(sounds[i].offset), sounds[i].pitch, sounds[i].volume, sounds[i].looping);
|
||||||
|
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue