Skip to content

AudioEffect

eduardgushchin edited this page Oct 2, 2026 · 2 revisions

Home | API by Category | Complete API Index | API Status

Field Value
Full name Electron2D.AudioEffect
Namespace Electron2D
Kind class
Category API Audio

Overview

Describes an audio bus effect and creates independent stereo processing state.

Syntax

public abstract class Electron2D.AudioEffect

Remarks

Buses borrow resources and own one instance per output stereo pair. Factories and graph edits are preparation operations; repeated processing must use prepared storage and synchronize custom mutable state.

Inherits: Resource

Detailed engine reference

Members

Member Kind Summary
protected AudioEffect() constructor Initializes an effect resource.
public Electron2D.AudioEffectInstance Instantiate() method Creates a caller-owned stereo effect instance borrowing this resource.
protected abstract Electron2D.AudioEffectInstance OnInstantiate() method Creates independent stereo processing state.

Member Details

AudioEffect()

Kind: constructor

protected AudioEffect()

Summary

Initializes an effect resource.

Instantiate()

Kind: method

public Electron2D.AudioEffectInstance Instantiate()

Summary

Creates a caller-owned stereo effect instance borrowing this resource.

Returns

A live, independent instance.

Exceptions

  • T:System.ObjectDisposedException: The resource is disposed.
  • T:System.InvalidOperationException: The factory returns null, disposed or bus-owned state.

OnInstantiate()

Kind: method

protected abstract Electron2D.AudioEffectInstance OnInstantiate()

Summary

Creates independent stereo processing state.

Returns

A new caller-owned instance; factories must not reenter audio configuration.

Clone this wiki locally