From 7fdbaa61561162ebffb7fec639de2ed78c909059 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 May 2020 19:48:46 +0200 Subject: [PATCH] output/osx: make AudioObjectPropertyAddress variables `static constexpr` --- src/output/plugins/OSXOutputPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index afdb97798..0d7ccce13 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -197,7 +197,7 @@ int OSXOutput::GetVolume() { Float32 vol; - AudioObjectPropertyAddress aopa = { + static constexpr AudioObjectPropertyAddress aopa = { kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, kAudioObjectPropertyScopeOutput, kAudioObjectPropertyElementMaster, @@ -223,7 +223,7 @@ void OSXOutput::SetVolume(unsigned new_volume) { Float32 vol = new_volume / 100.0; - AudioObjectPropertyAddress aopa = { + static constexpr AudioObjectPropertyAddress aopa = { kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, kAudioObjectPropertyScopeOutput, kAudioObjectPropertyElementMaster @@ -549,7 +549,7 @@ static void osx_output_hog_device(AudioDeviceID dev_id, bool hog) { pid_t hog_pid; - AudioObjectPropertyAddress aopa = { + static constexpr AudioObjectPropertyAddress aopa = { kAudioDevicePropertyHogMode, kAudioObjectPropertyScopeOutput, kAudioObjectPropertyElementMaster