Ecasound Configuration Files Parsed at Initialization

During startup, the Ecasound multitrack audio processing utility reads several configuration and preset files to establish its runtime environment, hardware drivers, and default parameters. Ecasound follows a hierarchical approach, loading system-wide defaults first before parsing user-specific files that can override those global settings. This article outlines the specific configuration files Ecasound parses during initialization and explains how they affect the program's operation.

System-Wide Configuration File: ecasoundrc

When launched, Ecasound first searches for a global resource file. Depending on the installation prefix and distribution settings, this file is typically located at:

This global configuration file sets machine-wide defaults, such as the default audio subsystem (e.g., ALSA, JACK, OSS), default buffer sizes, sampling parameters, and paths to external tools and LADSPA plugin directories.

User-Level Configuration File: ~/.ecasound/ecasoundrc

After reading the global configuration, Ecasound inspects the user's home directory for a personal configuration file located at:

If this file exists, it is parsed immediately after the system-wide file. Any parameters defined here override the settings specified in the global ecasoundrc. If the ~/.ecasound/ directory does not exist, Ecasound can create it automatically on first run to store local settings and session data.

Effect Preset Files

In addition to standard runtime configurations, Ecasound parses preset files during initialization to register predefined audio effect chains:

  1. System Effect Presets: Located alongside the global configuration (usually /usr/share/ecasound/effect_presets or /etc/ecasound/effect_presets), this file provides standard DSP algorithms, filters, and preset combinations provided by the package maintainer.
  2. User Effect Presets: Located at ~/.ecasound/effect_presets, this file allows users to define custom effect chains and presets that take priority over or extend the system presets.

Initialization Precedence

Ecasound applies settings using the following order of precedence:

  1. System-wide ecasoundrc establishes basic defaults.
  2. System-wide effect_presets registers baseline audio presets.
  3. User ~/.ecasound/ecasoundrc overrides global options with user preferences.
  4. User ~/.ecasound/effect_presets adds or overrides custom effect definitions.
  5. Command-line options and interactive Ecasound Control Interface (ECI) commands take final priority over all configuration files.