Detach Audio Objects in Ecasound Interactive Mode

Managing signal routing dynamically in Ecasound Interactive Mode (EIAM) often requires modifying signal chains by disconnecting or deleting audio inputs and outputs. This article explains how to identify, select, and detach audio objects from chains using EIAM commands such as ai-remove, ao-remove, and target selection directives.

Step 1: Pause or Stop the Engine

Before modifying chain setups, the audio engine should typically be halted to prevent processing errors while routing changes occur. Enter:

stop

Step 2: Identify and Select the Audio Object

Audio objects in Ecasound are categorized as inputs (ai) or outputs (ao). To detach an object, you must first verify which object is targeted by listing and selecting it.

To inspect existing inputs and outputs:

Once you have identified the target object by its index number or label, set it as the active object:

If the object is tied to a specific chain, select the chain first using c-select <chain_name>, though object selection can also be performed globally by index.

Step 3: Detach and Remove the Object

Ecasound treats detaching an audio object from the active chain setup via removal commands:

If an input or output is attached to multiple chains and you only want to clear the association without deleting the underlying source definition, inspect the chain bindings using c-status. In standard interactive sessions, ai-remove and ao-remove completely sever the object's attachment to the current setup.

Step 4: Verify and Restart the Engine

Confirm that the audio object has been detached by running ai-list or ao-list again. The detached device or file should no longer appear in the active chain routing.

To apply the changes and resume processing:

cs-connect
start