diff --git a/public/index.html b/public/index.html index 67f1d178..9a322cad 100644 --- a/public/index.html +++ b/public/index.html @@ -92,7 +92,7 @@ - + diff --git a/public/live.js b/public/live.js index be9e3748..201fc558 100644 --- a/public/live.js +++ b/public/live.js @@ -8,8 +8,6 @@ let activeAnims = 0; let nodeActivity = {}; let recentPaths = []; - let audioCtx = null; - let soundEnabled = false; let showGhostHops = localStorage.getItem('live-ghost-hops') !== 'false'; let realisticPropagation = localStorage.getItem('live-realistic-propagation') === 'true'; let showOnlyFavorites = localStorage.getItem('live-favorites-only') === 'true'; @@ -48,21 +46,6 @@ REQUEST: '❓', RESPONSE: '📨', TRACE: '🔍', PATH: '🛤️' }; - function playSound(typeName) { - if (!soundEnabled || !audioCtx) return; - try { - const osc = audioCtx.createOscillator(); - const gain = audioCtx.createGain(); - osc.connect(gain); gain.connect(audioCtx.destination); - const freqs = { ADVERT: 880, GRP_TXT: 523, TXT_MSG: 659, ACK: 330, REQUEST: 740, TRACE: 987 }; - osc.frequency.value = freqs[typeName] || 440; - osc.type = typeName === 'GRP_TXT' ? 'sine' : typeName === 'ADVERT' ? 'triangle' : 'square'; - gain.gain.setValueAtTime(0.03, audioCtx.currentTime); - gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.15); - osc.start(audioCtx.currentTime); osc.stop(audioCtx.currentTime + 0.15); - } catch {} - } - function initResizeHandler() { let resizeTimer = null; _onResize = function() { @@ -627,7 +610,6 @@