feat(应急就医): 新增摔倒预警提示音文件

- public:添加 fall_down.mp3 摔倒检测告警音效
This commit is contained in:
2026-07-23 16:58:13 +08:00
parent ecd1e5cd46
commit f55544321b
2 changed files with 8 additions and 1 deletions
Binary file not shown.
+8 -1
View File
@@ -24,9 +24,10 @@ const audioMgr = createAudioManager({
b: 'oneClick.mp3',
c: 'oxygen.mp3',
d: '13203.wav',
e: 'fall_down.mp3',
});
type AudioType = 'a' | 'b' | 'c' | 'd';
type AudioType = 'a' | 'b' | 'c' | 'd' | 'e';
interface PlayerState {
audio: HTMLAudioElement;
@@ -194,6 +195,9 @@ export function useSocket(p = basicPath, hasTimestamp: boolean = true) {
case 'spo2':
audioMgr.play('c', 1);
break;
case 'fall_down':
audioMgr.play('e', 1);
break;
default:
audioMgr.play('d', 1);
break;
@@ -211,6 +215,9 @@ export function useSocket(p = basicPath, hasTimestamp: boolean = true) {
case 'spo2':
audioMgr.stop('c');
break;
case 'fall_down':
audioMgr.stop('e');
break;
default:
audioMgr.stop('d');
break;