output/osx: make AudioObjectPropertyAddress variables `static constexpr`

This commit is contained in:
Max Kellermann 2020-05-27 19:48:46 +02:00
parent 8ef09a0a71
commit a30d5e1b6a
1 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ int
OSXOutput::GetVolume()
{
Float32 vol;
AudioObjectPropertyAddress aopa = {
static constexpr AudioObjectPropertyAddress aopa = {
kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
kAudioObjectPropertyScopeOutput,
kAudioObjectPropertyElementMaster,
@ -222,7 +222,7 @@ void
OSXOutput::SetVolume(unsigned new_volume)
{
Float32 vol = new_volume / 100.0;
AudioObjectPropertyAddress aopa = {
static constexpr AudioObjectPropertyAddress aopa = {
kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
kAudioObjectPropertyScopeOutput,
kAudioObjectPropertyElementMaster
@ -545,7 +545,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