From cc7a736ae9787e8079631f99c3e99ed949cc2993 Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sat, 29 Jan 2022 20:01:10 -0800 Subject: [PATCH] Reduce crossfade time --- Engine/src/shared/audio.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/src/shared/audio.ts b/Engine/src/shared/audio.ts index 61e41d1..2d28ce7 100644 --- a/Engine/src/shared/audio.ts +++ b/Engine/src/shared/audio.ts @@ -38,7 +38,7 @@ export function playSong(name: string) { } else { clearInterval(cl) } - }, 100) + }, 50) })(playingSongAudio) } playingSongAudio = new Audio() @@ -59,7 +59,7 @@ export function playSong(name: string) { } else { clearInterval(cl) } - }, 100) + }, 50) })(playingSongAudio) playingSongAudio.src = audio[name]