TeaWeb/web/js/audio/WebCodec.ts
2018-11-14 19:29:29 +01:00

11 lines
No EOL
349 B
TypeScript

/// <reference path="../../declarations/imports_shared.d.ts"/>
namespace audio.codec {
export function new_instance(type: CodecType) : BasicCodec {
return new CodecWrapperWorker(type);
}
export function supported(type: CodecType) : boolean {
return type == CodecType.OPUS_MUSIC || type == CodecType.OPUS_VOICE;
}
}