will remove ogv.js

This commit is contained in:
rustdesk
2022-02-05 21:46:28 +08:00
Unverified
parent 7d099ae9c9
commit 03e433789e
5 changed files with 31 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import { CursorData } from "./message";
import { loadOpus, loadVp9 } from "./codec";
import { checkIfRetry, version } from "./gen_js_from_hbb";
import { initZstd, translate } from "./common";
import PCMPlayer from "pcm-player";
var currentFrame = undefined;
var events = [];
@@ -301,3 +302,12 @@ export function getPeers() {
return {};
}
}
export function newAudioPlayer(channels, sampleRate) {
return new PCMPlayer({
encoding: '16bitInt',
channels,
sampleRate,
flushingTime: 2000
});
}