Skip to content

Commit

Permalink
Load Init Bank at startup by default (#125)
Browse files Browse the repository at this point in the history
(cherry picked from 2e7eb77)
  • Loading branch information
alessandrofama committed Nov 21, 2024
1 parent f0dc97e commit 6f991cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addons/Wwise/native/src/core/wwise_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void WwiseSettings::add_wwise_settings()
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "base_path", String("res://GeneratedSoundBanks"),
Variant::Type::STRING, PROPERTY_HINT_DIR, "res://GeneratedSoundBanks");
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "startup_language", String("English(US)"), Variant::Type::STRING);
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "load_init_bank_at_startup", false, Variant::Type::BOOL);
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "load_init_bank_at_startup", true, Variant::Type::BOOL);
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "suspend_on_focus_loss", false, Variant::Type::BOOL);
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "use_soundbank_names", true, Variant::Type::BOOL);
add_setting(WWISE_COMMON_USER_SETTINGS_PATH + "engine_logging", false, Variant::Type::BOOL);
Expand Down
2 changes: 1 addition & 1 deletion addons/Wwise/runtime/wwise_runtime_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends Node
var suspend_on_focus_loss:bool = false;

func _init() -> void:
suspend_on_focus_loss = ProjectSettings.get_setting("wwise/common_user_settings/suspend_on_focus_loss", false)
suspend_on_focus_loss = ProjectSettings.get_setting("wwise/common_user_settings/suspend_audio_during_focus_loss", false)
process_mode = Node.PROCESS_MODE_ALWAYS
Wwise.init()

Expand Down
7 changes: 1 addition & 6 deletions addons/Wwise/tests/ak_test_framework.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ var banks_loaded = false


func load_test_banks():
Wwise.load_bank("Init")
Wwise.load_bank("TestBank")
banks_loaded = true


func unload_test_banks():
Wwise.unload_bank_id(AK.BANKS.TESTBANK)
Wwise.unload_bank_id(AK.BANKS.INIT)
banks_loaded = false


Expand All @@ -26,10 +24,7 @@ func after_all():


func _ready():
print()
print_rich(
"[wave amp=50 freq=2]≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ ≈ 🆁🆄🅽🅽🅸🅽🅶 ​ 🆃🅴🆂🆃🆂 ≈ ≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈[/wave]\n"
)
print("WwiseGodot: Running tests")
before_all()
var infos = Array()
for test in wwise_tests:
Expand Down

0 comments on commit 6f991cc

Please sign in to comment.