Skip to content

Commit b8624d2

Browse files
authored
Subsystem Audio: Improvements to static typing (#2557)
just more specific node types, not a big deal
1 parent b23d689 commit b8624d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/dialogic/Modules/Audio/subsystem_audio.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func update_audio(channel_name:= "", path := "", settings_overrides := {}) -> vo
107107

108108
## Handle previous audio on channel
109109
if is_channel_playing(channel_name):
110-
var prev_audio_node: Node = current_audio_channels[channel_name]
110+
var prev_audio_node: AudioStreamPlayer = current_audio_channels[channel_name]
111111
prev_audio_node.name += "_Prev"
112112
if audio_settings.fade_length > 0.0:
113113
var fade_out_tween: Tween = create_tween()
@@ -215,7 +215,7 @@ func stop_all_one_shot_sounds() -> void:
215215

216216
## Converts a linear loudness value to decibel and sets that volume to
217217
## the given [param node].
218-
func interpolate_volume_linearly(value: float, node: Node) -> void:
218+
func interpolate_volume_linearly(value: float, node: AudioStreamPlayer) -> void:
219219
node.volume_db = linear_to_db(value)
220220

221221

0 commit comments

Comments
 (0)