diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index ac1124a8e5..2b7b95f514 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -12,8 +12,13 @@ const cache = new Map(); let canPlay = true; export const soundsTypes = [ + // 音声なし null, + + // ドライブの音声 'driveFile', + + // プリインストール 'syuilo/n-aec', 'syuilo/n-aec-4va', 'syuilo/n-aec-4vb', diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 9808623a84..b96d4ae4fa 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -36,13 +36,19 @@ interface PageViewInterruptor { handler: (page: Misskey.entities.Page) => unknown; } +/** サウンド設定 */ export type SoundStore = { type: Exclude; volume: number; } | { type: 'driveFile'; + + /** ドライブのファイルID */ fileId: string; + + /** ファイルURL(こちらが優先される) */ fileUrl: string; + volume: number; }