You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Replace Array return types with TypedArray
This commit is contained in:
@@ -178,7 +178,7 @@ Error AudioDriverPulseAudio::detect_channels(bool capture) {
|
||||
Error AudioDriverPulseAudio::init_device() {
|
||||
// If there is a specified device check that it is really present
|
||||
if (device_name != "Default") {
|
||||
Array list = get_device_list();
|
||||
PackedStringArray list = get_device_list();
|
||||
if (list.find(device_name) == -1) {
|
||||
device_name = "Default";
|
||||
new_device = "Default";
|
||||
@@ -599,7 +599,7 @@ void AudioDriverPulseAudio::pa_sinklist_cb(pa_context *c, const pa_sink_info *l,
|
||||
ad->pa_status++;
|
||||
}
|
||||
|
||||
Array AudioDriverPulseAudio::get_device_list() {
|
||||
PackedStringArray AudioDriverPulseAudio::get_device_list() {
|
||||
pa_devices.clear();
|
||||
pa_devices.push_back("Default");
|
||||
|
||||
@@ -681,7 +681,7 @@ void AudioDriverPulseAudio::finish() {
|
||||
Error AudioDriverPulseAudio::capture_init_device() {
|
||||
// If there is a specified device check that it is really present
|
||||
if (capture_device_name != "Default") {
|
||||
Array list = capture_get_device_list();
|
||||
PackedStringArray list = capture_get_device_list();
|
||||
if (list.find(capture_device_name) == -1) {
|
||||
capture_device_name = "Default";
|
||||
capture_new_device = "Default";
|
||||
@@ -785,7 +785,7 @@ void AudioDriverPulseAudio::pa_sourcelist_cb(pa_context *c, const pa_source_info
|
||||
ad->pa_status++;
|
||||
}
|
||||
|
||||
Array AudioDriverPulseAudio::capture_get_device_list() {
|
||||
PackedStringArray AudioDriverPulseAudio::capture_get_device_list() {
|
||||
pa_rec_devices.clear();
|
||||
pa_rec_devices.push_back("Default");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user