fix: use stable full-volume zone playback
This commit is contained in:
@@ -52,7 +52,7 @@ zones:
|
||||
enabled: true
|
||||
```
|
||||
|
||||
`fade-distance` expands the cuboid's audible envelope. With `playback.follow-player: true` (the default), the sound is attached to each listener and its volume fades from the configured volume inside the cuboid to silence at the edge of the fade envelope. Set it to `false` to use the fixed `origin` as a directional source instead.
|
||||
The player hears the sound at the configured volume everywhere inside the cuboid. Entering starts playback and leaving stops it; `fade-distance` is retained for configuration compatibility but is not used for playback selection in this entry/exit mode. The sound is attached to the listener, so distance from `origin` does not change its volume.
|
||||
|
||||
## Overlaps and performance
|
||||
|
||||
@@ -61,14 +61,14 @@ By default, only the audible zone with the highest `priority` is selected. Set `
|
||||
```yaml
|
||||
playback:
|
||||
check-interval-ticks: 10
|
||||
leave-grace-ticks: 100
|
||||
leave-grace-ticks: 0
|
||||
blend-overlapping-zones: false
|
||||
follow-player: true
|
||||
fade-volume-updates: false
|
||||
loop-restart-ticks: 2680
|
||||
```
|
||||
|
||||
When a selected zone remains selected, Ambient Audio Zone normally sends no new sound packet, so walking cannot restart or stack the audio. `fade-volume-updates` is disabled by default because Bukkit has no mutable-volume packet; enabling it approximates the fade by stopping and re-emitting the sound, which necessarily restarts it. For smooth native distance attenuation, disable `follow-player` and use a central `origin`. Leaving starts a configurable grace timer; returning before it expires preserves the existing client playback instead of restarting it. `loop-restart-ticks` is a fallback for sounds whose resource-pack definition does not loop; set it to the exact sound length, while resource-pack `loop: true` remains the seamless option. Reloading or editing a zone intentionally replaces its active sound.
|
||||
When a selected zone remains selected, Ambient Audio Zone sends no new sound packet, so walking cannot restart or stack the audio. Playback stops on the first update after leaving the cuboid. `loop-restart-ticks` is a fallback for sounds whose resource-pack definition does not loop; set it to the exact sound length, while resource-pack `loop: true` remains the seamless option. Reloading or editing a zone intentionally replaces its active sound.
|
||||
|
||||
## Resource-pack looping note
|
||||
|
||||
|
||||
Reference in New Issue
Block a user