You are browsing as a guest. Sign up (or log in) to start making projects!

1h 15m 57s logged

Devlog 40: Alarm Audio & LocalStorage

Independent Alarm Audio Handling

  • new Audio() allowing each finished timer to play independent looping sound effects concurrently.
  • Bound alarm termination directly to handleReset() and handleDelete() .

LocalStorage Serialization Fixes

  • Sanitized timer state object before serialization in saveTimers() by stripping transient DOM/Audio references (alarmAudio) to prevent JSON stringification crashes.
  • Added type validation (typeof alarmAudio.pause === "function") inside stopAlarm() to prevent runtime TypeError issues during state rehydration.

Post-Reload Alarm & Visual Sync

  • Updated renderAll() to resume alarm sound playback and background pulse animation for ended timers across page reloads.
  • Cleared endTime correctly during timer reset to normalize state lifecycle.

alarm.wav

  • Using LMMS to create alarm.wav for the alarming when timer.status==="ended".
0
75

Comments 0

No comments yet. Be the first!