Audio · function

audioCandidateUrls

Every filename a named slot answers to. Feed the result to SoundSource.urls, which tries them in order and takes the first that loads.

Explained in Your first game.

function audioCandidateUrls(name: string, baseDir?: string): string[]
import { audioCandidateUrls } from '@driftengine/audio';

Parameters

ParameterTypeDescription
namestring
baseDir?string