diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index 5dfe23641..afdb97798 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -198,9 +198,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, @@ -224,9 +224,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,