30. Put sounds on named channels
{
"type":"PlaySound",
"assetId":"chime",
"channel":"intro_bell"
}Figure 18. A named channel gives a later StopSound event an exact sound to stop.
Add the bell accent at 0.1 seconds and move it to Audio. PlaySound may initially land on another authoring track; the chosen lane does not change how it plays.
{
"type":"StopSound",
"channel":"intro_bell"
}A second PlaySound on the same channel replaces the previous sound on that channel. Use different channel IDs for sounds that should overlap. If no channel is supplied, the asset ID is used as its channel reference.
The bar’s right edge does not stop the sound. Let a short recording end naturally, or schedule StopSound. A loop or long sound also needs cleanup when the player skips before its stop event.
0.86.4.3 / Preview, cue timing and hooks > Page 74
