opus is slow
This commit is contained in:
@@ -40,18 +40,4 @@ export async function loadVp9(callback) {
|
||||
},
|
||||
{ worker: true, threading: true }
|
||||
);
|
||||
}
|
||||
|
||||
export function loadOpus(callback, channels, rate) {
|
||||
window.OGVLoader.loadClass(
|
||||
"OGVDecoderAudioOpusW",
|
||||
(audioCodecClass) => {
|
||||
audioCodecClass({ audioFormat: { channels, rate } }).then((decoder) => {
|
||||
decoder.init(() => {
|
||||
callback(decoder);
|
||||
})
|
||||
})
|
||||
},
|
||||
{ worker: true }
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user