Skip to content

Commit

Permalink
cleanup: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Nov 26, 2024
1 parent 0dccfea commit 66bd799
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/desktop/src/routes/in-progress-recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ import {
createCurrentRecordingQuery,
} from "~/utils/queries";

// Create a singleton audio level store that persists across reloads
const audioLevelStore = {
level: 0,
initialized: false,
init() {
if (this.initialized) return;

events.audioInputLevelChange.listen((dbs) => {
// Convert dB to a percentage (0-100)
// Typical microphone levels are between -60dB and 0dB
// We'll use -60dB as our floor and 0dB as our ceiling
const DB_MIN = -60;
const DB_MAX = 0;

Expand Down

0 comments on commit 66bd799

Please sign in to comment.