Adds a pop and whoosh sound for message receive/sent

This commit is contained in:
Josh Perez 2023-05-08 15:59:36 -04:00
parent c7a430f375
commit 272b81c7cf
20 changed files with 141 additions and 145 deletions

View file

@ -3,7 +3,7 @@
import PQueue from 'p-queue';
import { MINUTE } from './durations';
import { Sound } from './Sound';
import { Sound, SoundType } from './Sound';
const ringtoneEventQueue = new PQueue({
concurrency: 1,
@ -21,7 +21,7 @@ class CallingTones {
}
const tone = new Sound({
src: 'sounds/navigation-cancel.ogg',
soundType: SoundType.CallingHangUp,
});
await tone.play();
}
@ -40,7 +40,7 @@ class CallingTones {
this.ringtone = new Sound({
loop: true,
src: 'sounds/ringtone_minimal.ogg',
soundType: SoundType.Ringtone,
});
await this.ringtone.play();
@ -63,7 +63,7 @@ class CallingTones {
}
const tone = new Sound({
src: 'sounds/navigation_selection-complete-celebration.ogg',
soundType: SoundType.CallingPresenting,
});
await tone.play();