Audio · interface
ZoneOptions
Explained in Your first game.
interface ZoneOptionsimport type { ZoneOptions } from '@driftengine/audio';Properties
| Name | Type | Description |
|---|---|---|
secondsreadonly | number | How long the tail is. |
decayreadonly | number | How fast it decays inside that. Larger is a drier, tighter room. |
wetreadonly | number | How much reaches the return when the listener is fully inside. |
fromreadonlyoptional | MixBus | What feeds this zone. The console's effects bus when omitted.MoreA zone is a property of the world, so what it should carry is the world's own sound. A consumer with its own tree names the bus; one using the default layout gets the bus every placed source and ambient loop already lands on. |