feat: use local alert sound instead of broken URL
All checks were successful
Pull Request Check / validate (pull_request) Successful in 23s

This commit is contained in:
2026-03-30 20:36:30 +02:00
parent 0640144e6b
commit b01f3d2dab
2 changed files with 1475 additions and 1 deletions

8
App.js
View File

@@ -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);
}

1468
assets/alert.mp3 Normal file

File diff suppressed because one or more lines are too long