Synchronize AudioStreamPlayer3D in multiplayer game

Godot Version



Hello, I was wondering how to synchronize the audio in a multiplayer game, since when I tried to do it through MultiplayerSynchronizer, the only sound I heard in the client session was some kind of noise (it played as I wanted, but it was just weird audio). I’m trying to make the sound of the gunshot be heard in all sessions in the player’s position.
(I’m new to Godot multiplayer)

What does your current implementation look like?

Typically I wouldn’t sync the audio player directly. I would utilize the state of the object to play as a result of an synchronized action. Much in the same way a single player game works.

If state == shoot:
    Play sound

State is synchronized, but the audio player isn’t.