Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ikbencasdoei committed Feb 28, 2021
1 parent f90a2b8 commit 990139d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/godot-voip/scripts/voip_instance.gd
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ var _playback: AudioStreamGeneratorPlayback
var _receive_buffer := PoolRealArray()

func _process(delta: float) -> void:
_process_input()
_process_output()
_process_voice()
_process_mic()

func create_mic():
_mic = VoipMic.new()
Expand Down Expand Up @@ -54,7 +54,7 @@ remote func _speak(sample_data: PoolRealArray, id: int = -1):
emit_signal("received_voice_data", sample_data, id)
_receive_buffer.append_array(sample_data)

func _process_input():
func _process_voice():
if _playback == null:
return

Expand All @@ -65,7 +65,7 @@ func _process_input():
else:
_playback.push_frame(Vector2.ZERO)

func _process_output():
func _process_mic():
if recording:
if _effect_capture == null:
create_mic()
Expand Down

0 comments on commit 990139d

Please sign in to comment.