Skip to content

API Interface LineOptions

github-actions[bot] edited this page Nov 24, 2026 · 2 revisions

Interface: LineOptions

Defined in: src/plugins/audio/runtime/localisation/lines.ts:45

Options for Audio.line (ADR 0354 §5): the play options, plus a node it plays from and follows.

Extends

Extended by

Properties

at?

at?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:22

Start at this audio-clock time (seconds, Audio.time's base).

Inherited from

EventOptions.at


bus?

bus?: string;

Defined in: src/plugins/audio/runtime/playlists/options.ts:18

Override the playlist's bus.

Inherited from

EventOptions.bus


dopplerLevel?

dopplerLevel?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:37

Inherited from

EventOptions.dopplerLevel


line?

line?: string;

Defined in: src/plugins/audio/runtime/playlists/options.ts:51

ADR 0354 §5: the line key a programmer line entry ({ "line": null }) plays (FMOD's programmer instrument); a playlist without one ignores it. A line table's template playlist gets each line's key this way.

Inherited from

EventOptions.line


maxDistance?

maxDistance?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:46

Inherited from

EventOptions.maxDistance


minDistance?

minDistance?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:45

ADR 0347: distance overrides for a spatial playlist, metres. Its attenuation curves stretch from their own distances to these (stretchAttenuation); either omitted keeps the attenuation's own. AudioSource.minDistance/maxDistance reach the playlist this way. Flat playlists ignore them.

Inherited from

EventOptions.minDistance


node?

node?: GameObject;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:47

Plays from and follows this node's world position (a flat template ignores it).


occlusion?

occlusion?: boolean;

Defined in: src/plugins/audio/runtime/playlists/options.ts:36

ADR 0162 §1.2 (D4): the playing AudioSource's options, for a spatial playlist. The playlist's own spatial keys win; these apply where it sets none. A flat playlist ignores them. Callers clamp.

Inherited from

EventOptions.occlusion


offset?

offset?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:29

Start as if this many seconds had already played (ADR 0343, 0348: audition from a point, seek): a sequence starts its playhead there; the samples a playlist starts with begin that far into their sound (a looping one wraps). Later starts (a queue's next entry, a stinger) are unaffected. 0 or omitted: from the start; negative or non-finite: ignored with one warning.

Inherited from

EventOptions.offset


parameters?

parameters?: Record<string, string | number>;

Defined in: src/plugins/audio/runtime/playlists/options.ts:31

Initial values of the playlist's local parameters (labelled ones by label).

Inherited from

EventOptions.parameters


pitch?

pitch?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:14

Pitch ratio multiplier, default 1.

Inherited from

EventOptions.pitch


position?

position?: Vec3Like;

Defined in: src/plugins/audio/runtime/playlists/options.ts:16

Play at this world point (a spatial playlist; flat ones ignore it).

Inherited from

EventOptions.position


priority?

priority?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:20

Override the playlist's priority, 0..255.

Inherited from

EventOptions.priority


reverbSend?

reverbSend?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:38

Inherited from

EventOptions.reverbSend


reverbSendCurve?

reverbSendCurve?: Curve;

Defined in: src/plugins/audio/runtime/playlists/options.ts:39

Inherited from

EventOptions.reverbSendCurve


volume?

volume?: number;

Defined in: src/plugins/audio/runtime/playlists/options.ts:12

Linear gain multiplier, default 1.

Inherited from

EventOptions.volume

Clone this wiki locally