This commit is contained in:
Half-Shot
2024-12-05 11:32:20 +00:00
parent c7a56f7d66
commit c5f297d108
2 changed files with 5 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ export function CallEventAudioRenderer({
useEffect(() => {
if (audioEngineRef.current && previousRaisedHandCount < raisedHandCount) {
audioEngineRef.current.playSound("raiseHand");
void audioEngineRef.current.playSound("raiseHand");
}
}, [audioEngineRef, previousRaisedHandCount, raisedHandCount]);
@@ -73,7 +73,7 @@ export function CallEventAudioRenderer({
throttle(() => interval(THROTTLE_SOUND_EFFECT_MS)),
)
.subscribe(() => {
audioEngineRef.current?.playSound("join");
void audioEngineRef.current?.playSound("join");
});
const leftSub = vm.memberChanges
@@ -85,7 +85,7 @@ export function CallEventAudioRenderer({
throttle(() => interval(THROTTLE_SOUND_EFFECT_MS)),
)
.subscribe(() => {
audioEngineRef.current?.playSound("left");
void audioEngineRef.current?.playSound("left");
});
return (): void => {

View File

@@ -27,9 +27,9 @@ const TestComponent: FC = () => {
}
return (
<>
<button onClick={() => audioCtx.playSound("aSound")}>Valid sound</button>
<button onClick={async () => audioCtx.playSound("aSound")}>Valid sound</button>
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any*/}
<button onClick={() => audioCtx.playSound("not-valid" as any)}>
<button onClick={async () => audioCtx.playSound("not-valid" as any)}>
Invalid sound
</button>
</>