From b01f3d2dab0383784ec9f50afcea2623d8ccf286 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 30 Mar 2026 20:36:30 +0200 Subject: [PATCH] feat: use local alert sound instead of broken URL --- App.js | 8 +- assets/alert.mp3 | 1468 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1475 insertions(+), 1 deletion(-) create mode 100644 assets/alert.mp3 diff --git a/App.js b/App.js index 8f0034f..c99148b 100644 --- a/App.js +++ b/App.js @@ -198,9 +198,15 @@ export default function App() { const playSound = async () => { try { const { sound } = await Audio.Sound.createAsync( - { uri: 'https://shx.reversed.dev/u/mCgT76.mp3' }, + require('./assets/alert.mp3'), { shouldPlay: true, volume: 1.0 } ); + + sound.setOnPlaybackStatusUpdate((status) => { + if (status.didJustFinish) { + sound.unloadAsync(); + } + }); } catch (error) { console.log('Error playing sound:', error); } diff --git a/assets/alert.mp3 b/assets/alert.mp3 new file mode 100644 index 0000000..a435783 --- /dev/null +++ b/assets/alert.mp3 @@ -0,0 +1,1468 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Page not found · GitHub · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ Skip to content + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + +
+ + + + + + + + + +
+
+ + + +
+
+ +
+
+ 404 “This is not the web page you are looking for” + + + + + + + + + + + + +
+
+ +
+
+ +
+ + +
+
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +