class_soundplayer2d.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_SoundPlayer2D:
  4. SoundPlayer2D
  5. =============
  6. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Inherited By:** :ref:`SamplePlayer2D<class_sampleplayer2d>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Base class for playing spatial 2D sound.
  12. Member Functions
  13. ----------------
  14. +----------------------------+----------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_param<class_SoundPlayer2D_get_param>` **(** :ref:`int<class_int>` param **)** const |
  16. +----------------------------+----------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_param<class_SoundPlayer2D_set_param>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  18. +----------------------------+----------------------------------------------------------------------------------------------------------------------------+
  19. Numeric Constants
  20. -----------------
  21. - **PARAM_VOLUME_DB** = **0**
  22. - **PARAM_PITCH_SCALE** = **1**
  23. - **PARAM_ATTENUATION_MIN_DISTANCE** = **2**
  24. - **PARAM_ATTENUATION_MAX_DISTANCE** = **3**
  25. - **PARAM_ATTENUATION_DISTANCE_EXP** = **4**
  26. - **PARAM_MAX** = **5**
  27. Description
  28. -----------
  29. Base class for playing spatial 2D sound.
  30. Member Function Description
  31. ---------------------------
  32. .. _class_SoundPlayer2D_get_param:
  33. - :ref:`float<class_float>` **get_param** **(** :ref:`int<class_int>` param **)** const
  34. .. _class_SoundPlayer2D_set_param:
  35. - void **set_param** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**