Superheroes_Incremental/src/client/audio/catalog.ts

13 lines
398 B
TypeScript

import { AudioChannel } from "./settings";
export interface AudioClip {
readonly assetId: string;
readonly volume?: number;
readonly playbackSpeed?: number;
}
export type AudioCatalog = Readonly<Record<AudioChannel, Readonly<Record<string, AudioClip>>>>;
// Add only audio assets that the experience is authorized to use.
export const AUDIO_CATALOG: AudioCatalog = { SFX: {}, Music: {} };