Ducking rules

The configuration file can be used to specify ducking behavior for the different types of audio streams.

The "Ducking Rules" configuration value specifies the behavior of audio streams when they are affected by other streams. The configuration file lists the audio stream types in order of priority, from highest to lowest, and the behavior of each audio stream type when it is pre-empted by a higher-priority stream.

Every audio stream can be set to one the following:

Example

The code snippet below shows an example of ducking rules. Note that these rules are not relevent for some audio streams, such as voice recordings.

 
"Devices":{
    "Description":"Specify the default values of the attributes of the audio devices",
    "speaker":{
      "supported":"true",
      "path":"/dev/snd/pcmPreferredp",
      "input.path":"/dev/snd/pcmPreferredc",
      "connected":"true",
      "numchans":"1",
      "order":"FL",
      "audioconfig":"2.0",
      "inchans":"0",
      "hwinchans":"0",
      "volumecontrol":"percentage",
      "dependency":"",
      "keepalive":"false",
      "suspended":"false",
      "controlpps":"",
      "audioprocessing":"false",
      "vadsupport":"",
      "public":"true",
      "mutable":"true",
      "mixer":"Master",
      "input.mixer":"Input Gain"
    },
    ...