1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Further refactoring to AudioDriver implementations after #69120.

- Rename all instances of `capture_start()` and `capture_end()` to their new
  names. Fixes #72892.
- More internal renames to match what was started in #69120.
- Use `override` consistently so that such refactoring bugs can be caught.
- Harmonize the order of definition of the overridden virtual methods in each
  audio driver.
- Harmonize prototype for `set_output_device` and `set_input_device`.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
Emmanouil Papadeas
2023-02-08 17:40:15 +02:00
committed by Rémi Verschelde
parent d69809cab6
commit c36460060e
22 changed files with 227 additions and 215 deletions

View File

@@ -166,18 +166,18 @@ void AudioDriverWeb::finish() {
}
}
Error AudioDriverWeb::capture_start() {
Error AudioDriverWeb::input_start() {
lock();
input_buffer_init(buffer_length);
unlock();
if (godot_audio_capture_start()) {
if (godot_audio_input_start()) {
return FAILED;
}
return OK;
}
Error AudioDriverWeb::capture_stop() {
godot_audio_capture_stop();
Error AudioDriverWeb::input_stop() {
godot_audio_input_stop();
lock();
input_buffer.clear();
unlock();