Does AudioStreamPlayer's stop() prevent audio clipping upon audio stream change?

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

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?

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

spaceyjase | 2021-12-28 12:37

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.

Ox0zOwra | 2021-12-28 13:22