Skip to reading
The Cutscene Designer

30. Put sounds on named channels

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations
Code example
{
  "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.

Code example
{
  "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

Page 34 of 78Permalink
Go to page