Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

AudioEffectAmplify

繼承: AudioEffect < Resource < RefCounted < Object

Adds a volume manipulation audio effect to an audio bus.

說明

提高或降低通過音訊匯流排的音量。

教學

屬性

float

volume_db

0.0

float

volume_linear


屬性說明

float volume_db = 0.0 🔗

  • void set_volume_db(value: float)

  • float get_volume_db()

Amount of amplification in dB. Positive values make the sound louder, negative values make it quieter. Value can range from -80 to 24.


float volume_linear 🔗

  • void set_volume_linear(value: float)

  • float get_volume_linear()

以線性值表示的放大量。

注意: 此屬性為操作便利而同步更新 volume_db。讀取時相當於對 volume_db 執行 @GlobalScope.db_to_linear();寫入時則以 @GlobalScope.linear_to_db() 轉換後指定至 volume_db