// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Microsoft Software License Terms for the Azure Communications Services, Azure CPaaS, MICROSOFT AZURE COMMUNICATION CALLING EFFECTS
// See LICENSE file for license information.

import{AudioEffectInternalBase as e}from"./84d148.js";import{LoggerImpl as t}from"./de977d.js";import{createClientLogger as n}from"@azure/logger";var __awaiter=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function fulfilled(e){try{step(o.next(e))}catch(e){c(e)}}function rejected(e){try{step(o.throw(e))}catch(e){c(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class EchoCancellationEffectInternalImpl extends e{constructor(e,t){super(e,t)}getEffectProvider(){return __awaiter(this,void 0,void 0,(function*(){return this.wasmvqeProvider}))}}let o=0;class EchoCancellationEffect{constructor(){this.name="EchoCancellation",this._logger=new t(n("ACS-calling-audio-effects"),[()=>"EchoCancellationEffect"+o++]),this._echoCancellationInternal=new EchoCancellationEffectInternalImpl(this.name,this._logger),this._logger.info(`v${this._echoCancellationInternal.getVersion()} EchoCancellationEffect ctor success`)}get _internalHandle(){return this._echoCancellationInternal}isSupported(){return __awaiter(this,void 0,void 0,(function*(){return yield this._echoCancellationInternal.capabilityChecker.audioEffectsSupported()}))}}export{EchoCancellationEffect};
