/* ESPILON Honeypot Dashboard — Audio Alerts */ export function playAlertSound(severity) { try { const ctx = new (window.AudioContext || window.webkitAudioContext)(); const osc = ctx.createOscillator(); const gain = ctx.createGain(); osc.connect(gain); gain.connect(ctx.destination); osc.frequency.value = severity === 'CRITICAL' ? 880 : 660; gain.gain.value = 0.15; osc.start(); osc.stop(ctx.currentTime + 0.15); } catch (e) { // Audio context may be blocked by browser policy } }