Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

feat: Use audio worklets for voice chat #1387

Merged
merged 12 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ DECENTRALAND_LOADER := static/loader/lifecycle/worker.js
GIF_PROCESSOR := static/gif-processor/worker.js
INTERNAL_SCENES := static/systems/decentraland-ui.scene.js
BUILD_ECS := packages/build-ecs/index.js
VOICE_CHAT_CODEC_WORKER := static/voice-chat-codec/worker.js
VOICE_CHAT_CODEC_WORKER := static/voice-chat-codec/worker.js static/voice-chat-codec/audioWorkletProcessors.js

config-contracts:
@echo 'Updating contracts...'
Expand Down
4 changes: 2 additions & 2 deletions kernel/packages/shared/comms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ function requestMediaDevice() {
},
video: false
})
.then((a) => {
voiceCommunicator!.setInputStream(a)
.then(async (a) => {
await voiceCommunicator!.setInputStream(a)
if (isVoiceChatRecording(store.getState())) {
voiceCommunicator!.start()
} else {
Expand Down
Loading