Repository navigation
API 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.
at?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:22
Start at this audio-clock time (seconds, Audio.time's base).
bus?: string;Defined in: src/plugins/audio/runtime/playlists/options.ts:18
Override the playlist's bus.
dopplerLevel?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:37
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.
maxDistance?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:46
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.
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?: 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.
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.
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).
pitch?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:14
Pitch ratio multiplier, default 1.
position?: Vec3Like;Defined in: src/plugins/audio/runtime/playlists/options.ts:16
Play at this world point (a spatial playlist; flat ones ignore it).
priority?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:20
Override the playlist's priority, 0..255.
reverbSend?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:38
reverbSendCurve?: Curve;Defined in: src/plugins/audio/runtime/playlists/options.ts:39
volume?: number;Defined in: src/plugins/audio/runtime/playlists/options.ts:12
Linear gain multiplier, default 1.
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference