Talos docs

Cue

Since 0.6
Plain text

Signature

export interface Cue {
  /** Present so a play cue and a mixer cue can sit in the same table. Default "play". */
  kind?: "play"
  asset: string
  loop?: boolean
  bus?: AudioBus
  /** 0..1, before the director's master volume. */
  volume?: number
  /** Playback rate; 1 is as authored. Omitted takes the asset's `meta.audio` default. */
  pitch?: number
  /** Spatialise here; omitted plays non-spatial. */
  at?: Target
  /** Name this playback so it can be stopped without the handle. */
  tag?: string
}

Import: import type { Cue } from "@argus/gameplay"

Members

MemberSignatureDescription
kindkind?: "play"Present so a play cue and a mixer cue can sit in the same table. Default "play".
assetasset: string
looploop?: boolean
busbus?: AudioBus
volumevolume?: number0..1, before the director's master volume.
pitchpitch?: numberPlayback rate; 1 is as authored. Omitted takes the asset's meta.audio default.
atat?: TargetSpatialise here; omitted plays non-spatial.
tagtag?: stringName this playback so it can be stopped without the handle.