Skip to content

Configuration

project-owner edited this page Oct 14, 2018 · 3 revisions

The peppyalsa plugin can be configured either by specifying plugin parameters in ALSA configuration file /etc/asound.conf (for all users) or /home/pi/.asoundrc (for pi user). Here is the example of the configuration file:

pcm.!default {
        type plug
        slave.pcm "softvol_and_peppyalsa"
}

ctl.!default {
        type hw
        card 0
}

pcm.peppyalsa {
        type meter
        slave.pcm "hw:0,0"
        scopes.0 peppyalsa
}

pcm.softvol_and_peppyalsa {
        type softvol
        slave.pcm "peppyalsa"
        control {
                name "PCM"
                card 0
        }
}

pcm_scope.peppyalsa {
        type peppyalsa
        decay_ms 400
        meter "/home/pi/myfifo"
        meter_max 100
        meter_show 0
        spectrum "/home/pi/myfifosa"
        spectrum_max 100
        spectrum_size 30
}

pcm_scope_type.peppyalsa {
        lib /usr/local/lib/libpeppyalsa.so
}

pcm.dsp0 peppyalsa

The meaning of each configuration parameter will be described in the corresponding chapter:

  • VU Meter - explains the meaning of the VU Meter configuration.
  • Spectrum Analyzer - explains the meaning of the Spectrum Analyzer configuration

The plugin can be configured to use only VU Meter functionality, only Spectrum Analyzer functionality or both. The example of the configuration file shown above defines configuration parameters for both features - VU Meter and Spectrum Analyzer.

<<Previous | Next>>