0 votes

I've been wondering because I don't really see a difference between doing

$AudioStreamPlayer.stop()
$AudioStreamPlayer.stream = music
$AudioStreamPlayer.play()

and

$AudioStreamPlayer.stream = music
$AudioStreamPlayer.play()

Does using stop() prevent audio clipping? Are there any other general methods to prevent it upon audio stream change?

Godot version 3.4.2 mono
in Engine by (47 points)

Have you tried it? It's a simple enough test - you already posted the code.

I did, and so far no clipping has happened. I just don't know if it's going to keep stopping clipping consistently. With the later method, clips happened arbitrarily when trying to switch the stream.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.