This commit is contained in:
2026-02-16 19:34:35 +00:00
commit 9ab0940ca4
784 changed files with 41710 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import type { SoundAsset } from './types';
import * as feedback from './audio/feedback';
import * as game from './audio/game';
import * as impact from './audio/impact';
import * as sciFi from './audio/sci-fi';
import * as ui from './audio/ui';
type Category = {
id: string;
label: string;
sounds: SoundAsset[];
};
const toArray = (mod: Record<string, SoundAsset>): SoundAsset[] => Object.values(mod);
export const categories: Category[] = [
{ id: 'ui', label: 'UI', sounds: toArray(ui as unknown as Record<string, SoundAsset>) },
{ id: 'feedback', label: 'Feedback', sounds: toArray(feedback as unknown as Record<string, SoundAsset>) },
{ id: 'game', label: 'Game', sounds: toArray(game as unknown as Record<string, SoundAsset>) },
{ id: 'impact', label: 'Impact', sounds: toArray(impact as unknown as Record<string, SoundAsset>) },
{ id: 'sci-fi', label: 'Sci-Fi', sounds: toArray(sciFi as unknown as Record<string, SoundAsset>) },
];
export const allSounds: SoundAsset[] = categories.flatMap((c) => c.sounds);