diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-09 12:04:35 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-09 12:04:35 +0100 |
commit | 340f24f75b96b396107f48ef70dc7c55822bb18a (patch) | |
tree | 79e045ef1939b8daad696cc0a074778f9c61ae53 /platform/web/js/libs/library_godot_audio.js | |
parent | d69809cab603cae9f525768337affe5e12e454a8 (diff) | |
parent | c36460060ea434158c2069d696880cbaf4431123 (diff) |
Merge pull request #72898 from OverloadedOrama/fix-microphone-issue
Further refactoring to AudioDriver implementations after #69120, fixes PulseAudio microphone input
Diffstat (limited to 'platform/web/js/libs/library_godot_audio.js')
-rw-r--r-- | platform/web/js/libs/library_godot_audio.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/web/js/libs/library_godot_audio.js b/platform/web/js/libs/library_godot_audio.js index 68348a3962..1993d66310 100644 --- a/platform/web/js/libs/library_godot_audio.js +++ b/platform/web/js/libs/library_godot_audio.js @@ -186,17 +186,17 @@ const GodotAudio = { } }, - godot_audio_capture_start__proxy: 'sync', - godot_audio_capture_start__sig: 'i', - godot_audio_capture_start: function () { + godot_audio_input_start__proxy: 'sync', + godot_audio_input_start__sig: 'i', + godot_audio_input_start: function () { return GodotAudio.create_input(function (input) { input.connect(GodotAudio.driver.get_node()); }); }, - godot_audio_capture_stop__proxy: 'sync', - godot_audio_capture_stop__sig: 'v', - godot_audio_capture_stop: function () { + godot_audio_input_stop__proxy: 'sync', + godot_audio_input_stop__sig: 'v', + godot_audio_input_stop: function () { if (GodotAudio.input) { const tracks = GodotAudio.input['mediaStream']['getTracks'](); for (let i = 0; i < tracks.length; i++) { |