@livekit/rtc-node
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -62,3 +62,4 @@ import { FfiClient } from './ffi_client.js'; | ||
const elapsed = this.lastCapture === 0 ? 0 : now - this.lastCapture; | ||
this.currentQueueSize += (frame.samplesPerChannel / frame.sampleRate - elapsed) * 1000; | ||
const frameDurationMs = (frame.samplesPerChannel / frame.sampleRate) * 1000; | ||
this.currentQueueSize += frameDurationMs - elapsed; | ||
this.lastCapture = now; | ||
@@ -65,0 +66,0 @@ if (this.timeout) { |
@@ -6,3 +6,3 @@ { | ||
"author": "LiveKit", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"main": "dist/index.js", | ||
@@ -47,7 +47,7 @@ "types": "dist/index.d.ts", | ||
"optionalDependencies": { | ||
"@livekit/rtc-node-darwin-arm64": "0.9.0", | ||
"@livekit/rtc-node-darwin-x64": "0.9.0", | ||
"@livekit/rtc-node-linux-arm64-gnu": "0.9.0", | ||
"@livekit/rtc-node-linux-x64-gnu": "0.9.0", | ||
"@livekit/rtc-node-win32-x64-msvc": "0.9.0" | ||
"@livekit/rtc-node-darwin-arm64": "0.9.1", | ||
"@livekit/rtc-node-darwin-x64": "0.9.1", | ||
"@livekit/rtc-node-linux-arm64-gnu": "0.9.1", | ||
"@livekit/rtc-node-linux-x64-gnu": "0.9.1", | ||
"@livekit/rtc-node-win32-x64-msvc": "0.9.1" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
@@ -106,3 +106,4 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
const elapsed = this.lastCapture === 0 ? 0 : now - this.lastCapture; | ||
this.currentQueueSize += (frame.samplesPerChannel / frame.sampleRate - elapsed) * 1000; | ||
const frameDurationMs = (frame.samplesPerChannel / frame.sampleRate) * 1000; | ||
this.currentQueueSize += frameDurationMs - elapsed; | ||
@@ -109,0 +110,0 @@ this.lastCapture = now; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1809470
30988