diff options
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/Print.cxx | 5 | ||||
-rw-r--r-- | src/output/plugins/WasapiOutputPlugin.cxx | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/output/Print.cxx b/src/output/Print.cxx index f649bfb52..9f8edf193 100644 --- a/src/output/Print.cxx +++ b/src/output/Print.cxx @@ -40,8 +40,7 @@ printAudioDevices(Response &r, const MultipleOutputs &outputs) ao.GetName(), ao.GetPluginName(), ao.IsEnabled()); - for (const auto &a : ao.GetAttributes()) - r.Format("attribute: %s=%s\n", - a.first.c_str(), a.second.c_str()); + for (const auto &[attribute, value] : ao.GetAttributes()) + r.Format("attribute: %s=%s\n", attribute.c_str(), value.c_str()); } } diff --git a/src/output/plugins/WasapiOutputPlugin.cxx b/src/output/plugins/WasapiOutputPlugin.cxx index a6c1d483b..fc46d439a 100644 --- a/src/output/plugins/WasapiOutputPlugin.cxx +++ b/src/output/plugins/WasapiOutputPlugin.cxx @@ -323,9 +323,11 @@ void WasapiOutput::Enable() { device.reset(); if (enumerate_devices && SafeTry([this]() { EnumerateDevices(); })) { - for (const auto &desc : device_desc) { - FormatNotice(wasapi_output_domain, "Device \"%u\" \"%s\"", - desc.first, desc.second.c_str()); + for (const auto &[device, desc] : device_desc) { + FormatNotice(wasapi_output_domain, + "Device \"%u\" \"%s\"", + device, + desc.c_str()); } } |