备份,准备做双端
This commit is contained in:
@@ -59,6 +59,15 @@ public class JudgeSoundManager : MonoBehaviour
|
||||
src.spatialBlend = 0f;
|
||||
// ensure not looping
|
||||
src.loop = false;
|
||||
|
||||
// Lowest-latency reactive playback for judge SFX:
|
||||
// bypass any AudioMixer-group / AudioListener DSP effects (reverb, compressor, etc.)
|
||||
// that would otherwise add buffer-sized processing latency on top of hardware output.
|
||||
src.bypassEffects = true;
|
||||
src.bypassListenerEffects = true;
|
||||
src.bypassReverbZones = true;
|
||||
// Highest priority so a judge hit is never delayed by voice-stealing under load.
|
||||
src.priority = 0;
|
||||
}
|
||||
|
||||
public enum JudgeResult { Perfect, Great, Good, Miss }
|
||||
|
||||
Reference in New Issue
Block a user