Commit a30d5e1b authored by Max Kellermann's avatar Max Kellermann

output/osx: make AudioObjectPropertyAddress variables `static constexpr`

parent 8ef09a0a
...@@ -196,7 +196,7 @@ int ...@@ -196,7 +196,7 @@ int
OSXOutput::GetVolume() OSXOutput::GetVolume()
{ {
Float32 vol; Float32 vol;
AudioObjectPropertyAddress aopa = { static constexpr AudioObjectPropertyAddress aopa = {
kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
kAudioObjectPropertyScopeOutput, kAudioObjectPropertyScopeOutput,
kAudioObjectPropertyElementMaster, kAudioObjectPropertyElementMaster,
...@@ -222,7 +222,7 @@ void ...@@ -222,7 +222,7 @@ void
OSXOutput::SetVolume(unsigned new_volume) OSXOutput::SetVolume(unsigned new_volume)
{ {
Float32 vol = new_volume / 100.0; Float32 vol = new_volume / 100.0;
AudioObjectPropertyAddress aopa = { static constexpr AudioObjectPropertyAddress aopa = {
kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
kAudioObjectPropertyScopeOutput, kAudioObjectPropertyScopeOutput,
kAudioObjectPropertyElementMaster kAudioObjectPropertyElementMaster
...@@ -545,7 +545,7 @@ static void ...@@ -545,7 +545,7 @@ static void
osx_output_hog_device(AudioDeviceID dev_id, bool hog) osx_output_hog_device(AudioDeviceID dev_id, bool hog)
{ {
pid_t hog_pid; pid_t hog_pid;
AudioObjectPropertyAddress aopa = { static constexpr AudioObjectPropertyAddress aopa = {
kAudioDevicePropertyHogMode, kAudioDevicePropertyHogMode,
kAudioObjectPropertyScopeOutput, kAudioObjectPropertyScopeOutput,
kAudioObjectPropertyElementMaster kAudioObjectPropertyElementMaster
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment