Update some Yarn plugins and fix bugs now detected.

This commit is contained in:
Matthew Stratford 2020-05-20 20:25:19 +01:00
parent 78c6b80915
commit 2c1c794198
3 changed files with 890 additions and 731 deletions

View file

@ -47,8 +47,8 @@ const App: React.FC = () => {
return <SessionHandler />; return <SessionHandler />;
} else { } else {
var timeslotid: number | null = null; var timeslotid: number | null = null;
if ("timeslot_id" in q) { if (("timeslot_id" in q) && (typeof q.timeslot_id === "string")) {
timeslotid = q.timeslot_id; timeslotid = parseInt(q.timeslot_id);
} else if (currentTimeslot.timeslot_id != null) { } else if (currentTimeslot.timeslot_id != null) {
timeslotid = currentTimeslot.timeslot_id; timeslotid = currentTimeslot.timeslot_id;
} }

View file

@ -636,12 +636,12 @@ export const setMicVolume = (level: MicVolumePresetEnum): AppThunk => (
// processing latency // processing latency
if (levelVal !== 0) { if (levelVal !== 0) {
dispatch( dispatch(
mixerState.actions.setMicLevels({ volume: levelVal, gain: levelVal }) mixerState.actions.setMicLevels({ volume: levelVal })
); );
} else { } else {
window.setTimeout(() => { window.setTimeout(() => {
dispatch( dispatch(
mixerState.actions.setMicLevels({ volume: levelVal, gain: levelVal }) mixerState.actions.setMicLevels({ volume: levelVal })
); );
// latency, plus a little buffer // latency, plus a little buffer
}, audioEngine.audioContext.baseLatency * 1000 + 150); }, audioEngine.audioContext.baseLatency * 1000 + 150);

1613
yarn.lock

File diff suppressed because it is too large Load diff