Repository navigation
API Interface OneShotOptions
Defined in: src/plugins/audio/runtime/Audio.ts:60
Options for Audio.playOneShot (ADR 0074, api-and-models §1).
at?: number;Defined in: src/plugins/audio/runtime/Audio.ts:76
Start at this audio-clock time (seconds, the base of Audio.time). Past or omitted: as soon as possible. Ignored while Audio.status is "locked". Non-finite: warns, plays now.
bus?: string;Defined in: src/plugins/audio/runtime/Audio.ts:72
The mixer bus to play on (ADR 0097); default Master. Unknown: Master plus the existing one-time warning.
dopplerLevel?: number;Defined in: src/plugins/audio/runtime/Audio.ts:83
With a position: scales the Doppler shift from the listener's motion, 0..5. Default 0 (opt in).
highpass?: number;Defined in: src/plugins/audio/runtime/Audio.ts:91
High-pass cutoff, Hz (10..24000; 20 and below is none).
lowpass?: number;Defined in: src/plugins/audio/runtime/Audio.ts:89
Low-pass cutoff, Hz (10..24000; 20000 and above is none). The lowest low-pass wins over automation's.
maxDistance?: number;Defined in: src/plugins/audio/runtime/Audio.ts:70
With a position: the distance where the falloff stops, metres (default 100).
minDistance?: number;Defined in: src/plugins/audio/runtime/Audio.ts:68
With a position: full volume inside this distance, metres (default 1).
occlusion?: boolean;Defined in: src/plugins/audio/runtime/Audio.ts:81
With a position: walls between the sound and the listener muffle it. Default true.
offset?: number;Defined in: src/plugins/audio/runtime/Audio.ts:78
Start this many seconds into the clip (ADR 0343, 0348: audition from a point; a trimmed sample: into its trimmed sound, ADR 0342). 0 or omitted: the start; past the end it ends at once. Negative or non-finite: warns, plays from the start.
pitch?: number;Defined in: src/plugins/audio/runtime/Audio.ts:66
Ratio, default 1, clamped 0.0625..16.
position?: Vec3Like;Defined in: src/plugins/audio/runtime/Audio.ts:64
World metres; omitted = flat. Play spatially at this world point.
priority?: number;Defined in: src/plugins/audio/runtime/Audio.ts:74
0..255, default 128. Mostly decides who is stolen when a limit is hit; it only mildly raises audibility (at most +6 dB in selection).
reverbSend?: number;Defined in: src/plugins/audio/runtime/Audio.ts:85
With a position: how much goes to the reverb zones that hold it, 0..2. Default 1.
reverbSendCurve?: Curve;Defined in: src/plugins/audio/runtime/Audio.ts:87
With a position: the reverb send against distance. Default: full send up close, half at maxDistance.
volume?: number;Defined in: src/plugins/audio/runtime/Audio.ts:62
Linear gain, default 1.
yaw?: number;Defined in: src/plugins/audio/runtime/Audio.ts:93
Ambisonic clips: turns the recording about the vertical axis, degrees (-180..180), positive to the right (clockwise seen from above, ADR 0164).
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