From 8ef09a0a71ab7fea767f04e629c4e0f2a550135d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 May 2020 19:47:47 +0200 Subject: [PATCH] output/osx: don't use C99 designated initializers Fixes `-Wpedantic`. --- src/output/plugins/OSXOutputPlugin.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index fb1cc380d..676768271 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -197,9 +197,9 @@ OSXOutput::GetVolume() { Float32 vol; AudioObjectPropertyAddress aopa = { - .mSelector = kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, - .mScope = kAudioObjectPropertyScopeOutput, - .mElement = kAudioObjectPropertyElementMaster, + kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, + kAudioObjectPropertyScopeOutput, + kAudioObjectPropertyElementMaster, }; UInt32 size = sizeof(vol); OSStatus status = AudioObjectGetPropertyData(dev_id, @@ -223,9 +223,9 @@ OSXOutput::SetVolume(unsigned new_volume) { Float32 vol = new_volume / 100.0; AudioObjectPropertyAddress aopa = { - .mSelector = kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, - .mScope = kAudioObjectPropertyScopeOutput, - .mElement = kAudioObjectPropertyElementMaster + kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, + kAudioObjectPropertyScopeOutput, + kAudioObjectPropertyElementMaster }; UInt32 size = sizeof(vol); OSStatus status = AudioObjectSetPropertyData(dev_id,