mirror of
https://github.com/thegatesbrowser/godot-multiplayer.git
synced 2025-09-22 11:26:56 -04:00
fix opuschunked null on server
This commit is contained in:
parent
19e287b098
commit
bc83aa6251
1 changed files with 5 additions and 6 deletions
|
@ -12,17 +12,16 @@ var users = {} # {Peer ID: VoipUser}
|
|||
|
||||
|
||||
func _ready() -> void:
|
||||
if Connection.is_server(): return
|
||||
|
||||
multiplayer.peer_connected.connect(peer_connected)
|
||||
multiplayer.peer_disconnected.connect(peer_disconnected)
|
||||
player_spawner.player_spawned.connect(player_spawned)
|
||||
|
||||
var mic_bus = AudioServer.get_bus_index("Record")
|
||||
opuschunked = AudioServer.get_bus_effect(mic_bus, 0)
|
||||
denoiser_available = opuschunked.denoiser_available()
|
||||
print("Denoiser available: ", denoiser_available)
|
||||
print_audio_server_info()
|
||||
|
||||
if Connection.is_server(): return
|
||||
multiplayer.peer_connected.connect(peer_connected)
|
||||
multiplayer.peer_disconnected.connect(peer_disconnected)
|
||||
player_spawner.player_spawned.connect(player_spawned)
|
||||
|
||||
|
||||
func peer_connected(id: int) -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue