Skip to main content

PlayOptions

Index

Properties

optionalscheduledStartTime

scheduledStartTime?: number

Schedule time to play in milliseconds from the audio context origin

Compute using the audio context

const sound: Sound = ...;
const oneThousandMillisecondsFromNow = AudioContextFactory.currentTime + 1000;

sound.play({ scheduledStartTime: oneThousandMillisecondsFromNow });

optionalvolume

volume?: number

Volume to play between [0, 1]

Page Options