File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed
Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments