You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
committed by
Rémi Verschelde
parent
d69809cab6
commit
c36460060e
@@ -634,9 +634,9 @@ String AudioDriverWASAPI::get_output_device() {
|
||||
return name;
|
||||
}
|
||||
|
||||
void AudioDriverWASAPI::set_output_device(String output_device) {
|
||||
void AudioDriverWASAPI::set_output_device(const String &p_name) {
|
||||
lock();
|
||||
audio_output.new_device = output_device;
|
||||
audio_output.new_device = p_name;
|
||||
unlock();
|
||||
}
|
||||
|
||||
@@ -964,12 +964,6 @@ Error AudioDriverWASAPI::input_stop() {
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
void AudioDriverWASAPI::set_input_device(const String &p_name) {
|
||||
lock();
|
||||
audio_input.new_device = p_name;
|
||||
unlock();
|
||||
}
|
||||
|
||||
PackedStringArray AudioDriverWASAPI::get_input_device_list() {
|
||||
return audio_device_get_list(true);
|
||||
}
|
||||
@@ -982,6 +976,12 @@ String AudioDriverWASAPI::get_input_device() {
|
||||
return name;
|
||||
}
|
||||
|
||||
void AudioDriverWASAPI::set_input_device(const String &p_name) {
|
||||
lock();
|
||||
audio_input.new_device = p_name;
|
||||
unlock();
|
||||
}
|
||||
|
||||
AudioDriverWASAPI::AudioDriverWASAPI() {
|
||||
samples_in.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user