TeaWeb/web/js/audio/WebCodec.ts

11 lines
349 B
TypeScript
Raw Normal View History

2018-11-12 13:00:13 +01:00
/// <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;
}
2018-11-12 13:00:13 +01:00
}