When the 25min timer hits 0, play a soft ding sound.
File to edit: client/src/hooks/usePomodoro.js
Hint: use the Web Audio API or a small mp3 file.
The timer hits 0 but there's zero feedback.
When prev <= 1 fires, play a browser notification sound.
Use Web Audio API —
const ctx = new AudioContext()
const osc = ctx.createOscillator()
osc.connect(ctx.destination)
osc.start(); osc.stop(ctx.currentTime + 0.3)
No extra packages needed!
When the 25min timer hits 0, play a soft ding sound.
File to edit: client/src/hooks/usePomodoro.js
Hint: use the Web Audio API or a small mp3 file.
The timer hits 0 but there's zero feedback.
When prev <= 1 fires, play a browser notification sound.
Use Web Audio API —
const ctx = new AudioContext()
const osc = ctx.createOscillator()
osc.connect(ctx.destination)
osc.start(); osc.stop(ctx.currentTime + 0.3)
No extra packages needed!