Ask coding questions

← Back to all posts
How to stop or pause audio in replit python?
prateeknair10 (0)

I wanted to make the bgm stop or pause when the game is paused, but idk how to do it after source = audio.play_file("<filename>")

SixBeeps (5052)

You should be able to use source.setPaused() for this.