Skip to content

Commit

Permalink
Save Fri Dec 29 04:29:15 PM -03 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Arregui committed Dec 29, 2023
1 parent 63a608a commit 3b12fcd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ export function createLiveKitVoiceHandler(room: Room): VoiceHandler {
errorListener('Media Device Error')
}
})
.on(RoomEvent.AudioPlaybackStatusChanged, (c) => {
console.log('audio playback status changed', c)
})

logger.log(`initialized ${room.name}`)

Expand Down
5 changes: 0 additions & 5 deletions browser-interface/packages/shared/voiceChat/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,11 @@ function* handleConnectVoiceChatToRoom() {
while (true) {
// wait for next event to happen
yield take([SET_SCENE_ROOM_CONNECTION, JOIN_VOICE_CHAT, LEAVE_VOICE_CHAT])
console.log('HANDLE CONNECT VOICE CHAT TO ROOM')

const joined: boolean = yield select(hasJoinedVoiceChat)
const prevHandler = yield select(getVoiceHandler)
let handler: VoiceHandler | null = null

console.log('HANDLE CONNECT VOICE CHAT TO ROOM, joined', joined)
// if we are supposed to be joined, then ask the RoomConnection about the handler
if (joined) {
const realmAdapter: IRealmAdapter = yield call(ensureRealmAdapter)
Expand All @@ -101,8 +99,6 @@ function* handleConnectVoiceChatToRoom() {
} catch (err: any) {
yield put(setVoiceChatError(err.toString()))
}
} else {
console.log('no room')
}
} else if (prevHandler) {
// NOTE: since prevHandler may not be destroyed, we mute it
Expand Down Expand Up @@ -157,7 +153,6 @@ function* reactToNewVoiceChatHandler() {

while (true) {
yield take(SET_VOICE_CHAT_HANDLER)
console.log('SET VOICE CHAT HANDLER')

const voiceChatState: VoiceChatState = yield select(getVoiceChatState)
const voiceHandler = voiceChatState.voiceHandler
Expand Down

0 comments on commit 3b12fcd

Please sign in to comment.