will remove ogv.js
This commit is contained in:
parent
7d099ae9c9
commit
03e433789e
5 changed files with 31 additions and 8 deletions
|
|
@ -42,11 +42,11 @@ export async function loadVp9(callback) {
|
|||
);
|
||||
}
|
||||
|
||||
export function loadOpus(callback) {
|
||||
export function loadOpus(callback, channels, rate) {
|
||||
window.OGVLoader.loadClass(
|
||||
"OGVDecoderAudioOpusW",
|
||||
(audioCodecClass) => {
|
||||
audioCodecClass({ audioFormat: {} }).then((decoder) => {
|
||||
audioCodecClass({ audioFormat: { channels, rate } }).then((decoder) => {
|
||||
decoder.init(() => {
|
||||
callback(decoder);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue