mirror of
https://github.com/thegatesbrowser/godot-multiplayer.git
synced 2025-09-22 20:26:55 -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,18 +12,17 @@ var users = {} # {Peer ID: VoipUser}
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
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")
|
var mic_bus = AudioServer.get_bus_index("Record")
|
||||||
opuschunked = AudioServer.get_bus_effect(mic_bus, 0)
|
opuschunked = AudioServer.get_bus_effect(mic_bus, 0)
|
||||||
denoiser_available = opuschunked.denoiser_available()
|
denoiser_available = opuschunked.denoiser_available()
|
||||||
print("Denoiser available: ", denoiser_available)
|
print("Denoiser available: ", denoiser_available)
|
||||||
print_audio_server_info()
|
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:
|
func peer_connected(id: int) -> void:
|
||||||
if id == 1: return
|
if id == 1: return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue