Stop Audio Stream

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rayu

This is my Main Menu script

func _ready() -> void:
	MusicController.play_music1_()

This Audio is from a Autoload
And when i start the Game i want a different Audio to start (which it does) but the other Audio is still playing, it doesn’t stop.

func _start_game() -> void:
    MusicController.play_music1_() <--- stop
    MusicController.play_music2_()

i searched on the docs but don’t know how to do that, i tried with is_playing() and other but idk.

:bust_in_silhouette: Reply From: Tyrel Smith

Try MusicController.stop()
or MusicController.stop_music1_()