# Audio Configuration Database
# gh


# Developer instructions for successful and consistent audio effects configuration


In order for modules relying on the configuration of audio effects to function when this module is installed on a user's device, the configuration practices below must be adopted.


Failure to place a completed acdb.conf in the root of the installing module will result with unconfigured effects when the ACDB module is installed. The ACDB module will exterminate any and all audio effects configurations found in external modules. Doing this during each device boot ensures that an audio effect configuration conflict never occurs. This same script also monitors modules for status changes such as newly installed, disabled, and enabled.


Taking advantage of this utility requires just a one-time action of adding the four appropriate values for your audio effect in acdb.conf and install it with your module in its root directory next to module.prop.


Instructions detailing appropriate values are illustrated inside acdb.conf for instant access as well.


## Dev Instructions ##


acdb.conf is a module configuration file sourced by the ACDB module ( $MODPATH/acdb.conf ) to add or remove the configuration of audio libraries and effects to configurations included in this module - determined by the status of an installed Magisk module being installed, disabled, or enabled.


A total of eleven (11) acdb.conf files are allowed to be sourced for each effect for modules requiring the configuration of two or more effects:

acdb.conf
acdb0.conf
acdb1.conf
acdb2.conf
acdb3.conf
acdb4.conf
acdb5.conf
acdb6.conf
acdb7.conf
acdb8.conf
acdb9.conf


audio_effects.(xml|conf) and uniquely named vendor configurations supported.


All that is required for sufficient and effective audio effects configuration for your Magisk module is to provide four (4) values to the four elements in acdb.conf:


libraryid=
libraryname=

effectid=
effectuuid=


# Example:


# libraryid=v4a_fx
# libraryname=libv4a_fx_ics.so

# effectid=v4a_standard_fx
# effectuuid=41d3c987-e6cf-11e3-a88a-11aba5d5c51b


# equals:


#        <library name="v4a_fx" path="libv4a_fx_ics.so"/>
#    </libraries>

#        <effect name="v4a_standard_fx" library="v4a_fx" uuid="41d3c987-e6cf-11e3-a88a-11aba5d5c51b"/>
#    </effects



# libraries {
#   v4a_fx {
#     path /vendor/lib/soundfx/libv4a_fx_ics.so
#   }

# effects {
#   v4a_standard_fx {
#     library v4a_fx
#     uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b
#   }
