What language are the alsa configuration files (such as ~/.asoundrc) written in?

Here’s a brief snippet of an alsa config file (/usr/share/alsa/pcm/default.conf):

pcm.!default {
        @args [ CARD ]
        @args.CARD {
                type string
                default {
                        @func getenv
                        vars [
                                ALSA_PCM_CARD
                                ALSA_CARD
                        ]
                        default {
                                @func refer
                                name defaults.pcm.card
                        }
                }
        }
...

Does this language exist outside of alsa, and if so, what language is it?

Asked By: jaimet

||

This configuration language is specific to ALSA (and has no formal name other than the "ALSA configuration language"). See src/conf.c in alsa-lib.

Answered By: Chris Down
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.