Add sound when speaker stops speaking

And also a slightly nicer blocked sound (ok, I couldn't let it go).
This commit is contained in:
David Baker
2022-05-13 21:00:14 +01:00
parent f6f0c20b08
commit 9fd7329554
8 changed files with 31 additions and 11 deletions

View File

@@ -109,8 +109,13 @@ export const PTTCallView: React.FC<Props> = ({
const { audioOutput } = useMediaHandler();
const { startTalkingLocalRef, startTalkingRemoteRef, blockedRef, playClip } =
usePTTSounds();
const {
startTalkingLocalRef,
startTalkingRemoteRef,
blockedRef,
endTalkingRef,
playClip,
} = usePTTSounds();
const {
pttButtonHeld,
@@ -146,6 +151,7 @@ export const PTTCallView: React.FC<Props> = ({
<PTTClips
startTalkingLocalRef={startTalkingLocalRef}
startTalkingRemoteRef={startTalkingRemoteRef}
endTalkingRef={endTalkingRef}
blockedRef={blockedRef}
/>
<Header className={styles.header}>