AudioEffectsFeature interface
API interface for the AudioEffects feature
- Extends
Properties
active |
Read-only object that represents the current active audio effects |
Inherited Properties
name | The feature name. |
Methods
is |
Method to check if an effect is supported in the current environment. |
off("effects |
Unsubscribe functions - fires on error while using effects |
off("effects |
Unsubscribe functions - fires when effects are started |
off("effects |
Unsubscribe functions - fires when effects are stopped |
on("effects |
Subscribe functions - fires on error while using effects |
on("effects |
Subscribe functions - fires when effects are started |
on("effects |
Subscribe functions - fires when effects are stopped |
start |
Start effects |
stop |
Stop effects |
Inherited Methods
dispose() |
Property Details
activeEffects
Read-only object that represents the current active audio effects
activeEffects: ActiveAudioEffects
Property Value
Inherited Property Details
name
Method Details
isSupported("BrowserNoiseSuppression" | DeepNoiseSuppressionEffect)
Method to check if an effect is supported in the current environment.
function isSupported(effect: "BrowserNoiseSuppression" | DeepNoiseSuppressionEffect): Promise<boolean>
Parameters
- effect
-
"BrowserNoiseSuppression" | DeepNoiseSuppressionEffect
Instance of the effect or the 'Browser..' effect to check support of.
Returns
Promise<boolean>
true if effect is supported in the current environment.
off("effectsError", AudioEffectsFeatureErrorListener)
Unsubscribe functions - fires on error while using effects
function off(event: "effectsError", listener: AudioEffectsFeatureErrorListener)
Parameters
- event
-
"effectsError"
Event of type AudioEffectsFeatureEvent
- listener
- AudioEffectsFeatureErrorListener
A listener callback
off("effectsStarted", AudioEffectsFeatureListener)
Unsubscribe functions - fires when effects are started
function off(event: "effectsStarted", listener: AudioEffectsFeatureListener)
Parameters
- event
-
"effectsStarted"
Event of type AudioEffectsFeatureEvent
- listener
- AudioEffectsFeatureListener
A listener callback
off("effectsStopped", AudioEffectsFeatureListener)
Unsubscribe functions - fires when effects are stopped
function off(event: "effectsStopped", listener: AudioEffectsFeatureListener)
Parameters
- event
-
"effectsStopped"
Event of type AudioEffectsFeatureEvent
- listener
- AudioEffectsFeatureListener
A listener callback
on("effectsError", AudioEffectsFeatureErrorListener)
Subscribe functions - fires on error while using effects
function on(event: "effectsError", listener: AudioEffectsFeatureErrorListener)
Parameters
- event
-
"effectsError"
Event of type AudioEffectsFeatureEvent
- listener
- AudioEffectsFeatureErrorListener
A listener callback
on("effectsStarted", AudioEffectsFeatureListener)
Subscribe functions - fires when effects are started
function on(event: "effectsStarted", listener: AudioEffectsFeatureListener)
Parameters
- event
-
"effectsStarted"
Event of type AudioEffectsFeatureEvent
- listener
- AudioEffectsFeatureListener
A listener callback
on("effectsStopped", AudioEffectsFeatureListener)
Subscribe functions - fires when effects are stopped
function on(event: "effectsStopped", listener: AudioEffectsFeatureListener)
Parameters
- event
-
"effectsStopped"
Event of type AudioEffectsFeatureEvent
- listener
- AudioEffectsFeatureListener
A listener callback
startEffects(AudioEffectsStartConfig)
Start effects
function startEffects(audioEffects: AudioEffectsStartConfig): Promise<void>
Parameters
- audioEffects
- AudioEffectsStartConfig
Object representing the audio effects to start
Returns
Promise<void>
stopEffects(AudioEffectsStopConfig)
Stop effects
function stopEffects(audioEffects: AudioEffectsStopConfig): Promise<void>
Parameters
- audioEffects
- AudioEffectsStopConfig
Returns
Promise<void>
Inherited Method Details
dispose()
function dispose()
Inherited From AudioStreamFeature.dispose