diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index 0f3632871..67fd9ddfe 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -36,6 +36,7 @@ #include #include +#include #include #include @@ -192,7 +193,7 @@ OSXOutput::GetVolume() { Float32 vol; AudioObjectPropertyAddress aopa = { - .mSelector = kAudioDevicePropertyVolumeScalar, + .mSelector = kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, .mScope = kAudioObjectPropertyScopeOutput, .mElement = kAudioObjectPropertyElementMaster, }; @@ -217,7 +218,7 @@ void OSXOutput::SetVolume(unsigned new_volume) { Float32 vol = new_volume / 100.0; AudioObjectPropertyAddress aopa = { - .mSelector = kAudioDevicePropertyVolumeScalar, + .mSelector = kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, .mScope = kAudioObjectPropertyScopeOutput, .mElement = kAudioObjectPropertyElementMaster };