新版本
This commit is contained in:
@@ -260,6 +260,20 @@ const SFX_UI = {
|
||||
setTimeout(() => Snd.synth({ freq: 523, dur: 100, vol: 0.13 }), 120);
|
||||
},
|
||||
|
||||
// 打字/录音音效(~800ms)
|
||||
typing() {
|
||||
for (let i = 0; i < 6; i++) {
|
||||
setTimeout(() => {
|
||||
Snd.synth({ freq: 600 + Math.random() * 200, dur: 30, type: 'sine', vol: 0.1 });
|
||||
}, i * 120);
|
||||
}
|
||||
},
|
||||
|
||||
// 发送音效
|
||||
send() {
|
||||
Snd.synth({ freq: 400, freq2: 900, dur: 120, type: 'sine', vol: 0.18 });
|
||||
},
|
||||
|
||||
// 结局音效
|
||||
ending() {
|
||||
Snd.synth({ freq: 523, dur: 400, vol: 0.25 });
|
||||
|
||||
Reference in New Issue
Block a user