2
0

class_audioeffecteq.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioEffectEQ.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioEffectEQ:
  6. AudioEffectEQ
  7. =============
  8. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`AudioEffectEQ10<class_AudioEffectEQ10>`, :ref:`AudioEffectEQ21<class_AudioEffectEQ21>`, :ref:`AudioEffectEQ6<class_AudioEffectEQ6>`
  10. **Category:** Core
  11. Brief Description
  12. -----------------
  13. Base class for audio equalizers. Gives you control over frequencies.
  14. Use it to create a custom equalizer if :ref:`AudioEffectEQ6<class_AudioEffectEQ6>`, :ref:`AudioEffectEQ10<class_AudioEffectEQ10>` or :ref:`AudioEffectEQ21<class_AudioEffectEQ21>` don't fit your needs.
  15. Methods
  16. -------
  17. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`get_band_count<class_AudioEffectEQ_method_get_band_count>` **(** **)** const |
  19. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`get_band_gain_db<class_AudioEffectEQ_method_get_band_gain_db>` **(** :ref:`int<class_int>` band_idx **)** const |
  21. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_band_gain_db<class_AudioEffectEQ_method_set_band_gain_db>` **(** :ref:`int<class_int>` band_idx, :ref:`float<class_float>` volume_db **)** |
  23. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. Description
  25. -----------
  26. AudioEffectEQ gives you control over frequencies. Use it to compensate for existing deficiencies in audio. AudioEffectEQ are very useful on the Master Bus to completely master a mix and give it character. They are also very useful when a game is run on a mobile device, to adjust the mix to that kind of speakers (it can be added but disabled when headphones are plugged).
  27. Method Descriptions
  28. -------------------
  29. .. _class_AudioEffectEQ_method_get_band_count:
  30. - :ref:`int<class_int>` **get_band_count** **(** **)** const
  31. Returns the number of bands of the equalizer.
  32. ----
  33. .. _class_AudioEffectEQ_method_get_band_gain_db:
  34. - :ref:`float<class_float>` **get_band_gain_db** **(** :ref:`int<class_int>` band_idx **)** const
  35. Returns the band's gain at the specified index, in dB.
  36. ----
  37. .. _class_AudioEffectEQ_method_set_band_gain_db:
  38. - void **set_band_gain_db** **(** :ref:`int<class_int>` band_idx, :ref:`float<class_float>` volume_db **)**
  39. Sets band's gain at the specified index, in dB.