API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfacePlayOptions

@codexo/exojs / audio / stable

Per-play overrides passed to AudioSystem.play.

22
props
0
methods
0
events
Import
import { PlayOptions } from '@codexo/exojs'

Per-play overrides passed to AudioSystem.play.

Properties22
coneInnerAngle?: number
Initial full-gain cone half-angle. Default 360 (no cone).
coneOuterAngle?: number
Initial falloff cone half-angle. Default 360.
coneOuterGain?: number
Initial gain outside the outer cone. Default 0.
detune?: number
Override pitch detune (cents) for this play instance.
elevation?: number
Initial height above the world plane. Default 0.
elevationVelocity?: number
Initial vertical velocity for Doppler. Default 0.
loop?: boolean
Override looping for this play instance.
maxDistance?: number
Initial max distance ('linear' model only). Default 1000.
muted?: boolean
Start muted (volume 0).
occlusion?: number
Initial occlusion amount in [0, 1]. Default 0 (clear path).
orientation?: number
Initial cone facing direction, in degrees (SceneNode.rotation convention). Default 0.
panningModel?: PanningModelType
Per-play panning model override. Omit to inherit the app-wide default.
playbackRate?: number
Override playback rate for this play instance.
refDistance?: number
Initial reference distance. Default 50.
rolloffFactor?: number
Initial rolloff factor. Default 1.
time?: number
Seek offset in seconds before starting playback.
volume?: number
Override volume for this play instance. Range [0, 1].
Source