bmc0 / dsp

An audio processing program with an interactive mode.
ISC License
219 stars 31 forks source link

How to programmatically make sure the DSP is in effect? #63

Closed akay closed 3 years ago

akay commented 3 years ago

Here's my .asoundrc:

pcm.DAC {
    type hw
    card 1
    device 0
}

pcm.DSP {
    type plug
    slave {
        format FLOAT
        rate "unchanged"
        channels "unchanged"
        pcm {
            type ladspa
            path "/usr/lib/ladspa"
            playback_plugins [{
                label "ladspa_dsp"
            }]
            slave.pcm {
                type plug
                slave {
                    pcm "DAC"
                    rate "unchanged"
                    channels "unchanged"
                }
            }
        }
    }
}

pcm.!default {
    type copy
    slave.pcm "DSP"
}

ctl.!default {
    type hw
    card "DAC"
}

My Output Pipeline in Quod Libet is alsasink device=DAC.

There's always playing with values, but how could I programmatically make sure/validate that the system-wide DSP is in effect?