Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Jan 14, 2025
1 parent 2f5282c commit ba9091a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/pages/Scenes/ExpanderCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useState } from 'react'
import Box from '@mui/material/Box'
import {
Card,
Expand Down
10 changes: 5 additions & 5 deletions src/pages/Settings/Webaudio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Webaudio = ({ style }: { style: CSSProperties }) => {
id: 8000 + i,
type: 'audio_stream_config'
}
ws.ws.send(JSON.stringify(++request.id && request))
ws?.ws.send(JSON.stringify(++request.id && request))
}
sendWs()
}
Expand Down Expand Up @@ -153,7 +153,7 @@ const Webaudio = ({ style }: { style: CSSProperties }) => {
id: 8500 + i,
type: 'audio_stream_data_v2'
}
ws.ws.send(JSON.stringify(++request.id && request))
ws?.ws.send(JSON.stringify(++request.id && request))
}
const sendWsV1 = async () => {
const i = 0
Expand All @@ -163,7 +163,7 @@ const Webaudio = ({ style }: { style: CSSProperties }) => {
id: 8000 + i,
type: 'audio_stream_data'
}
ws.ws.send(JSON.stringify(++request.id && request))
ws?.ws.send(JSON.stringify(++request.id && request))
}
if (webAudType === 'audio_stream_data_v2') {
sendWsV2()
Expand Down Expand Up @@ -203,7 +203,7 @@ const Webaudio = ({ style }: { style: CSSProperties }) => {
id: 8200 + i,
type: 'audio_stream_stop'
}
ws.ws.send(JSON.stringify(++request.id && request))
ws?.ws.send(JSON.stringify(++request.id && request))
}
sendWs().then(() => getSchemas())
setWebAud(false)
Expand Down Expand Up @@ -359,7 +359,7 @@ const Webaudio = ({ style }: { style: CSSProperties }) => {
id: 8499,
type: 'audio_stream_start'
}
ws.ws.send(JSON.stringify(request.id && request))
ws?.ws.send(JSON.stringify(request.id && request))
}
sendWs()
setTimeout(() => {
Expand Down

0 comments on commit ba9091a

Please sign in to comment.