diff --git a/global/autoload/audio/audio_player/audio_player.gd b/global/autoload/audio/audio_player/audio_player.gd index 0d65bc0..25627fd 100644 --- a/global/autoload/audio/audio_player/audio_player.gd +++ b/global/autoload/audio/audio_player/audio_player.gd @@ -12,6 +12,7 @@ const TWEEN_FADE_AUDIO_DURATION: float = 2.0 @export var is_looping: bool = false var master_volume: float = max_volume + var _current_audio: Resource var _fade_tween: Tween var _idle_playback_position: float = 0.0 diff --git a/global/autoload/audio/audio_player/track_state.gd b/global/autoload/audio/audio_player/track_state.gd index 756fd90..6a09ff7 100644 --- a/global/autoload/audio/audio_player/track_state.gd +++ b/global/autoload/audio/audio_player/track_state.gd @@ -1,13 +1,13 @@ extends StateMachineState -@onready var audio_player: AudioPlayer = owner - const TWEEN_TRANSITION_TIME: float = 1.0 var track: AudioStreamPlayer var _transition_tween: Tween var _is_active: bool = false +@onready var audio_player: AudioPlayer = owner + ############### ## overrides ## ###############