mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
204 lines
7.5 KiB
ReStructuredText
204 lines
7.5 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_AudioEffectReverb:
|
||
|
||
AudioEffectReverb
|
||
=================
|
||
|
||
**继承:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||
|
||
向音频总线添加一个混响音频效果。
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
描述
|
||
----
|
||
|
||
模拟房间、音乐厅、洞穴或开放空间等声学环境的声音。
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
教程
|
||
----
|
||
|
||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||
|
||
- `第三人称射击(TPS)演示 <https://godotengine.org/asset-library/asset/2710>`__
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
属性
|
||
----
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`damping<class_AudioEffectReverb_property_damping>` | ``0.5`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`dry<class_AudioEffectReverb_property_dry>` | ``1.0`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`hipass<class_AudioEffectReverb_property_hipass>` | ``0.0`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`predelay_feedback<class_AudioEffectReverb_property_predelay_feedback>` | ``0.4`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`predelay_msec<class_AudioEffectReverb_property_predelay_msec>` | ``150.0`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`room_size<class_AudioEffectReverb_property_room_size>` | ``0.8`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`spread<class_AudioEffectReverb_property_spread>` | ``1.0`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
| :ref:`float<class_float>` | :ref:`wet<class_AudioEffectReverb_property_wet>` | ``0.5`` |
|
||
+---------------------------+------------------------------------------------------------------------------+-----------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
属性说明
|
||
--------
|
||
|
||
.. _class_AudioEffectReverb_property_damping:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **damping** = ``0.5`` :ref:`🔗<class_AudioEffectReverb_property_damping>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_damping**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_damping**\ (\ )
|
||
|
||
定义虚拟房间墙壁的反射程度。值的范围是 0 到 1。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_dry:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **dry** = ``1.0`` :ref:`🔗<class_AudioEffectReverb_property_dry>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_dry**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_dry**\ (\ )
|
||
|
||
原始声音的输出百分比。为 0 时,只输出修改后的声音。取值范围是 0 到 1。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_hipass:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **hipass** = ``0.0`` :ref:`🔗<class_AudioEffectReverb_property_hipass>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_hpf**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_hpf**\ (\ )
|
||
|
||
高通滤波器通过频率高于某一截止频率的信号,衰减频率低于截止频率的信号。数值范围为 0 到 1。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_predelay_feedback:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **predelay_feedback** = ``0.4`` :ref:`🔗<class_AudioEffectReverb_property_predelay_feedback>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_predelay_feedback**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_predelay_feedback**\ (\ )
|
||
|
||
预延迟的输出百分比。数值范围为 0 到 1。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_predelay_msec:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **predelay_msec** = ``150.0`` :ref:`🔗<class_AudioEffectReverb_property_predelay_msec>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_predelay_msec**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_predelay_msec**\ (\ )
|
||
|
||
原始信号与混响信号早期反射之间的时间,以毫秒为单位。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_room_size:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **room_size** = ``0.8`` :ref:`🔗<class_AudioEffectReverb_property_room_size>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_room_size**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_room_size**\ (\ )
|
||
|
||
模拟房间的尺寸。越大表示回声越多。值的范围可以从 0 到 1。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_spread:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **spread** = ``1.0`` :ref:`🔗<class_AudioEffectReverb_property_spread>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_spread**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_spread**\ (\ )
|
||
|
||
扩大或缩小混响尾音的立体声图像。1 表示完全扩大。值的范围是 0 到 1。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_AudioEffectReverb_property_wet:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **wet** = ``0.5`` :ref:`🔗<class_AudioEffectReverb_property_wet>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_wet**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_wet**\ (\ )
|
||
|
||
修改后声音的输出百分比。为 0 时,只输出原始声音。取值范围是 0 到 1。
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||
.. |void| replace:: :abbr:`void (无返回值。)`
|