Skip to content

Commit 45eaeb1

Browse files
committed
chore: update the mp3 file
1 parent 52f1e5a commit 45eaeb1

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

apps/web/components/notification-sound-handler.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ export function NotificationSoundHandler() {
1414
audioContextRef.current = new (window.AudioContext || (window as any).webkitAudioContext)();
1515
}
1616

17-
// Resume context if suspended
1817
if (audioContextRef.current.state === "suspended") {
1918
await audioContextRef.current.resume();
2019
}
2120

2221
if (!audioBufferRef.current) {
23-
console.log("Loading audio file...");
24-
const response = await fetch("/sample-12s.mp3");
22+
const response = await fetch("/ring.mp3");
2523
const arrayBuffer = await response.arrayBuffer();
2624
audioBufferRef.current = await audioContextRef.current.decodeAudioData(arrayBuffer);
2725
console.log("Audio file loaded and decoded");
@@ -86,7 +84,6 @@ export function NotificationSoundHandler() {
8684
sourceRef.current.stop();
8785
sourceRef.current.disconnect();
8886
sourceRef.current = null;
89-
console.log("Sound stopped");
9087
}
9188
};
9289

apps/web/public/ring.mp3

262 KB
Binary file not shown.

apps/web/public/sample-12s.mp3

-201 KB
Binary file not shown.

0 commit comments

Comments
 (0)