Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
noituri committed Dec 3, 2024
1 parent 39c1c80 commit f44fca7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ts/@live-compositor/web-wasm/src/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class Input {
const targetFrame = frames.reduce((prevFrame, frame) => {
const prevPtsDiff = Math.abs(prevFrame.getPtsMs() - targetPts);
const currPtsDiff = Math.abs(frame.getPtsMs() - targetPts);
return prevPtsDiff < currPtsDiff ? prevFrame : frame
return prevPtsDiff < currPtsDiff ? prevFrame : frame;
});

for (const frame of frames) {
Expand Down
5 changes: 4 additions & 1 deletion ts/@live-compositor/web-wasm/src/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class Queue {

private async onTick() {
const inputs = await this.getInputFrames();
const pendingFrames = Object.entries(inputs).map(async ([inputId, input]) => [inputId, await input.getFrame()]);
const pendingFrames = Object.entries(inputs).map(async ([inputId, input]) => [
inputId,
await input.getFrame(),
]);
const frames = Object.fromEntries(await Promise.all(pendingFrames));

const outputs = this.renderer.render({
Expand Down

0 comments on commit f44fca7

Please sign in to comment.