AudioStreamPlayer3D resuming when game unpause

Godot Version

4.3 LTS

Question

`Hello, I’m having a problem with the AudioStreamPlayer3D node. When I pause it and then i pause the game, when i unpause the game the audio will unpause by itself, but i don’t want it to happen.

I’m calling this function in an AnimationPlayer to pause the audio and the video

func pauseTv() -> void:
	audio.stream_paused = !audio.stream_paused
	video.paused = !video.paused

`

I discovered i was being dumb and solved it already.

func pauseTv() -> void:
	if audio.playing:
		audioPosition = audio.get_playback_position()
		audio.stop() 
	else:
		audio.play()
		audio.seek(audioPosition)  
		
	video.paused = !video.paused