1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-29 15:36:32 -05:00

Merge pull request #9039 from Kelebek1/auto_backend

Auto select the SDL audio backend when Cubeb latency is too high
This commit is contained in:
liamwhite
2022-10-13 20:12:22 -04:00
committed by GitHub
7 changed files with 95 additions and 32 deletions

View File

@@ -161,8 +161,8 @@ void ConfigureAudio::InitializeAudioSinkComboBox() {
ui->sink_combo_box->clear();
ui->sink_combo_box->addItem(QString::fromUtf8(AudioCore::Sink::auto_device_name));
for (const char* id : AudioCore::Sink::GetSinkIDs()) {
ui->sink_combo_box->addItem(QString::fromUtf8(id));
for (const auto& id : AudioCore::Sink::GetSinkIDs()) {
ui->sink_combo_box->addItem(QString::fromUtf8(id.data(), static_cast<s32>(id.length())));
}
}