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:
/etc/ecasound/ecasoundrcor/usr/share/ecasound/ecasoundrc(or/usr/local/share/ecasound/ecasoundrc)
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:
~/.ecasound/ecasoundrc
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:
- System Effect Presets: Located alongside the global
configuration (usually
/usr/share/ecasound/effect_presetsor/etc/ecasound/effect_presets), this file provides standard DSP algorithms, filters, and preset combinations provided by the package maintainer. - 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:
- System-wide
ecasoundrcestablishes basic defaults. - System-wide
effect_presetsregisters baseline audio presets. - User
~/.ecasound/ecasoundrcoverrides global options with user preferences. - User
~/.ecasound/effect_presetsadds or overrides custom effect definitions. - Command-line options and interactive Ecasound Control Interface (ECI) commands take final priority over all configuration files.