diff --git a/client/dev-dist/sw.js b/client/dev-dist/sw.js index 4c32965..ec59118 100644 --- a/client/dev-dist/sw.js +++ b/client/dev-dist/sw.js @@ -81,7 +81,7 @@ define(['./workbox-290dd570'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.pjhah2a023" + "revision": "0.guj84039cv8" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/client/dev-dist/sw.js.map b/client/dev-dist/sw.js.map index 76b0fa7..80e41e4 100644 --- a/client/dev-dist/sw.js.map +++ b/client/dev-dist/sw.js.map @@ -1 +1 @@ -{"version":3,"file":"sw.js","sources":["../../../../../../private/var/folders/lc/87d3wzj544l4skb096m6003m0000gn/T/4a30932bf0b5f902cd39a285abf7f543/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-routing/registerRoute.mjs';\nimport {ExpirationPlugin as workbox_expiration_ExpirationPlugin} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-expiration/ExpirationPlugin.mjs';\nimport {NetworkFirst as workbox_strategies_NetworkFirst} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-strategies/NetworkFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {cleanupOutdatedCaches as workbox_precaching_cleanupOutdatedCaches} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-precaching/cleanupOutdatedCaches.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\nself.skipWaiting();\nworkbox_core_clientsClaim();\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"registerSW.js\",\n \"revision\": \"3ca0b8505b4bec776b69afdba2768812\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"0.pjhah2a023\"\n }\n], {});\nworkbox_precaching_cleanupOutdatedCaches();workbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"index.html\"), {\n allowlist: [/^\\/$/], }));\nworkbox_routing_registerRoute(/^https:\\/\\/.*\\.livekit\\.cloud\\/.*/i, new workbox_strategies_NetworkFirst({ \"cacheName\":\"livekit-cache\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 10, maxAgeSeconds: 86400 })] }), 'GET');\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","workbox_precaching_cleanupOutdatedCaches","workbox_routing_registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","allowlist","workbox_strategies_NetworkFirst","plugins","workbox_expiration_ExpirationPlugin","maxEntries","maxAgeSeconds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBAA,CAAAA,CAAAA,CAAAA,CAAI,CAACC,WAAW,CAAA,CAAE;AAClBC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,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,CAAE;AAAEC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,aAAa,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA;AAAM,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;EAAE,CAAC,CAAC,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;;"} \ No newline at end of file +{"version":3,"file":"sw.js","sources":["../../../../../../private/var/folders/lc/87d3wzj544l4skb096m6003m0000gn/T/cb1d8b848490721ac3a2686857ee4702/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-routing/registerRoute.mjs';\nimport {ExpirationPlugin as workbox_expiration_ExpirationPlugin} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-expiration/ExpirationPlugin.mjs';\nimport {NetworkFirst as workbox_strategies_NetworkFirst} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-strategies/NetworkFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {cleanupOutdatedCaches as workbox_precaching_cleanupOutdatedCaches} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-precaching/cleanupOutdatedCaches.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/benoit/Documents/code/PTT Live/client/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\nself.skipWaiting();\nworkbox_core_clientsClaim();\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"registerSW.js\",\n \"revision\": \"3ca0b8505b4bec776b69afdba2768812\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"0.guj84039cv8\"\n }\n], {});\nworkbox_precaching_cleanupOutdatedCaches();workbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"index.html\"), {\n allowlist: [/^\\/$/], }));\nworkbox_routing_registerRoute(/^https:\\/\\/.*\\.livekit\\.cloud\\/.*/i, new workbox_strategies_NetworkFirst({ \"cacheName\":\"livekit-cache\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 10, maxAgeSeconds: 86400 })] }), 'GET');\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","workbox_precaching_cleanupOutdatedCaches","workbox_routing_registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","allowlist","workbox_strategies_NetworkFirst","plugins","workbox_expiration_ExpirationPlugin","maxEntries","maxAgeSeconds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBAA,CAAAA,CAAAA,CAAAA,CAAI,CAACC,WAAW,CAAA,CAAE;AAClBC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAyB,CAAA,CAAE;AAC3B,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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\ No newline at end of file diff --git a/client/src/components/AudioRoutingMatrix.css b/client/src/components/AudioRoutingMatrix.css index 8fd071d..73b8c88 100644 --- a/client/src/components/AudioRoutingMatrix.css +++ b/client/src/components/AudioRoutingMatrix.css @@ -84,15 +84,25 @@ .matrix-cell { background: var(--color-bg); - padding: var(--spacing-md); - min-height: 40px; - min-width: 60px; - cursor: pointer; + padding: var(--spacing-sm); + min-height: 60px; + min-width: 80px; transition: all 0.2s; display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: var(--spacing-xs); + position: relative; +} + +.cell-checkbox { + width: 100%; + min-height: 30px; + display: flex; align-items: center; justify-content: center; - position: relative; + cursor: pointer; } .matrix-cell:hover { @@ -114,6 +124,25 @@ font-weight: bold; } +.gain-select { + width: 100%; + padding: 4px 8px; + font-size: 0.75rem; + background: rgba(255, 255, 255, 0.9); + color: var(--color-text); + border: 1px solid rgba(255, 255, 255, 0.3); + border-radius: 4px; + cursor: pointer; + font-weight: 600; + text-align: center; +} + +.gain-select:focus { + outline: none; + border-color: rgba(255, 255, 255, 0.6); + box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); +} + @media (max-width: 1024px) { .matrix-header-cell, .matrix-label-cell { @@ -123,10 +152,15 @@ } .matrix-cell { - min-width: 50px; - min-height: 35px; + min-width: 70px; + min-height: 50px; padding: var(--spacing-sm); } + + .gain-select { + font-size: 0.7rem; + padding: 3px 6px; + } } @media (max-width: 768px) { @@ -147,11 +181,16 @@ } .matrix-cell { - min-width: 40px; - min-height: 30px; + min-width: 65px; + min-height: 45px; } .checkmark { font-size: 1rem; } + + .gain-select { + font-size: 0.65rem; + padding: 2px 4px; + } } diff --git a/client/src/components/AudioRoutingMatrix.jsx b/client/src/components/AudioRoutingMatrix.jsx index 21ec7d8..eba927f 100644 --- a/client/src/components/AudioRoutingMatrix.jsx +++ b/client/src/components/AudioRoutingMatrix.jsx @@ -100,6 +100,39 @@ function AudioRoutingMatrix({ groups, channelNames }) { return routing.groupToOutput[groupId]?.includes(outputId) || false; }; + const getGainForInputToGroup = (inputId, groupId) => { + const key = `in_${inputId}_${groupId}`; + return routing.gains?.[key] || 0.0; + }; + + const getGainForGroupToOutput = (groupId, outputId) => { + const key = `${groupId}_out_${outputId}`; + return routing.gains?.[key] || 0.0; + }; + + const setGainForInputToGroup = (inputId, groupId, gainDb) => { + setRouting(prev => { + const gains = { ...prev.gains }; + const key = `in_${inputId}_${groupId}`; + gains[key] = parseFloat(gainDb); + return { ...prev, gains }; + }); + }; + + const setGainForGroupToOutput = (groupId, outputId, gainDb) => { + setRouting(prev => { + const gains = { ...prev.gains }; + const key = `${groupId}_out_${outputId}`; + gains[key] = parseFloat(gainDb); + return { ...prev, gains }; + }); + }; + + const formatGain = (gainDb) => { + if (gainDb === 0) return '0dB'; + return gainDb > 0 ? `+${gainDb}dB` : `${gainDb}dB`; + }; + const getChannelName = (type, id) => { const name = channelNames?.[type]?.[id]; return name || `${type === 'inputs' ? 'Input' : 'Output'} ${id}`; @@ -169,15 +202,39 @@ function AudioRoutingMatrix({ groups, channelNames }) { {getChannelName('inputs', i)} - {groups.map(group => ( -
toggleInputToGroup(String(i), group.id)} - > - {isInputRoutedToGroup(String(i), group.id) && } -
- ))} + {groups.map(group => { + const isRouted = isInputRoutedToGroup(String(i), group.id); + const gain = getGainForInputToGroup(String(i), group.id); + + return ( +
+
toggleInputToGroup(String(i), group.id)} + > + {isRouted && } +
+ {isRouted && ( + + )} +
+ ); + })} ))} @@ -204,15 +261,39 @@ function AudioRoutingMatrix({ groups, channelNames }) { {group.name} - {getVisibleOutputChannels().map(i => ( -
toggleGroupToOutput(group.id, String(i))} - > - {isGroupRoutedToOutput(group.id, String(i)) && } -
- ))} + {getVisibleOutputChannels().map(i => { + const isRouted = isGroupRoutedToOutput(group.id, String(i)); + const gain = getGainForGroupToOutput(group.id, String(i)); + + return ( +
+
toggleGroupToOutput(group.id, String(i))} + > + {isRouted && } +
+ {isRouted && ( + + )} +
+ ); + })} ))}