mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 00:27:40 +02:00
Auto-Swing (#827)
* BurstLinq make BGM resync when changing pitch (to test) * autoswing some game implementations, most games already work fine * more game tweaks * 16th note swing more game fixes make pitch change resync optional in the API * suppress some common warnings * Update Credits.txt
This commit is contained in:
@ -86,11 +86,13 @@ namespace HeavenStudio
|
||||
GameObject Conductor = new GameObject();
|
||||
Conductor.name = "Conductor";
|
||||
AudioSource source = Conductor.AddComponent<AudioSource>();
|
||||
Conductor.AddComponent<Conductor>();
|
||||
Conductor.GetComponent<Conductor>().musicSource = source;
|
||||
Conductor cond = Conductor.AddComponent<Conductor>();
|
||||
cond.musicSource = source;
|
||||
source.priority = 255;
|
||||
source.outputAudioMixerGroup = Settings.GetMusicMixer();
|
||||
// Conductor.AddComponent<AudioDspTimeKeeper>();
|
||||
cond.gameManager = gameManager;
|
||||
|
||||
gameManager.conductor = cond;
|
||||
|
||||
GlobalGameManager.GameRenderTexture = gameRenderTexture;
|
||||
GlobalGameManager.OverlayRenderTexture = overlayRenderTexture;
|
||||
|
Reference in New Issue
Block a user