Revert "fix: 关于静音的问题 (#2693)"

This reverts commit 8f20f3fe04.
This commit is contained in:
lyswhut
2026-03-07 13:58:17 +08:00
committed by GitHub
parent 8f20f3fe04
commit d765c2ebdd

View File

@@ -65,14 +65,6 @@ export const createAudio = () => {
audio.autoplay = true
audio.preload = 'auto'
audio.crossOrigin = 'anonymous'
audio.addEventListener('playing', () => {
if (audioContext?.state == 'suspended') {
void audioContext.resume().catch((err) => {
console.error('Resume audio context failed:', err)
throw err
})
}
})
}
const initAnalyser = () => {