tune song preview timing: 300ms delay, 1s fade-in

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
main
name 2026-04-11 19:20:03 -07:00
parent eb5fdfa5da
commit e82cc0a016
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
import { useEffect, useRef } from 'react'
import type { Song } from './types'
const PREVIEW_DELAY_MS = 2000
const PREVIEW_DELAY_MS = 300
const PREVIEW_START_SEC = 30
const FADE_IN_MS = 1500
const FADE_IN_MS = 1000
const FADE_STEP_MS = 50
const FADE_OUT_MS = 400
const MAX_VOLUME = 0.5