How do I set a key to pause & start audiostreamplayer?

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

I have an audio playing when the game is loaded.
Now I would like to add a pause button on the menu screen so that anyone can pause & start the audio up again from where it was paused (not from the beginning).
Can someone show me how this is done?

:bust_in_silhouette: Reply From: exuin

Have you tried connecting the button’s “pressed” to the audiostreamplayer and changing the stream_paused property?