Guidance / API reference
Quick Reference
Common Patterns
Play Sound:
myEvent.Post();
myEvent.Post(gameObject, transform.position);
Control:
AudioHandle h = myEvent.Post();
h.SetVolumeScale(0.5f);
h.SetPitchOffset(2f);
h.Stop(1f);
Bus:
AudioManager.Instance.SetBusVolume("Music", -6f, 1f);
State:
AudioManager.Instance.SetState("Underwater", 1.5f);
Switch:
AudioManager.Instance.SetSwitch("Surface_Type", "Metal");
RTPC:
AudioManager.Instance.SetRTPC("CombatIntensity", 0.75f);
AudioManager.Instance.TransitionRTPC("CombatIntensity", 1.0f, 2f);
Global Controls:
AudioManager.Instance.StopAllSounds();
AudioManager.Instance.PauseAll();
AudioManager.Instance.UnpauseAll();
AudioManager.Instance.MuteAll(true);
Multi-Position:
AudioMultiHandle mh = myEvent.PostMultiPosition(emitterParent);
mh.SetVoiceVolumeScale(0, 0.5f); // Per-emitter control
mh.UpdatePositions(newTransforms); From the Pepper.SFX 3.1 guides (API_REFERENCE.md). Something wrong or unclear? Tell me.