Skip to content

Commit 499aec3

Browse files
committed
fix: remove unused variable
1 parent bd5eee3 commit 499aec3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/views/learn-note/useLearnNote.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ export function playNoteSound(frequency: number, duration = 0.9) {
188188
// On mobile, small speakers cannot reproduce deep bass well. Instead of
189189
// relying only on sub‑frequencies, add a small peaking filter to lift the
190190
// mid-bass band and route harmonics that phones can actually play.
191-
let finalDestination: AudioNode = ctx.destination
192191
let bassFilter: BiquadFilterNode | null = null
193192
if (isMobile && isBass) {
194193
bassFilter = ctx.createBiquadFilter()
@@ -199,7 +198,6 @@ export function playNoteSound(frequency: number, duration = 0.9) {
199198
bassFilter.gain.setValueAtTime(4, now) // +4 dB (tuned down for less boom)
200199
masterGain.connect(bassFilter)
201200
bassFilter.connect(ctx.destination)
202-
finalDestination = bassFilter
203201
} else {
204202
masterGain.connect(ctx.destination)
205203
}

0 commit comments

Comments
 (0)