Audio · function

parseAudioManifest

Validate a manifest's contents.

Explained in Your first game.

function parseAudioManifest(value: unknown): string[]
import { parseAudioManifest } from '@driftengine/audio';

Parameters

ParameterTypeDescription
valueunknown

In depth

Separated from fetching so the rules can be tested without a network, and because the rules are the part that matters: a manifest is generated by a script, and a script that emits one bad entry must not take the rest of the library down with it.