[MacPorts] #71941: Provide legacy-support wrappers for CoreAudio.h and AudioToolbox.h

MacPorts noreply at macports.org
Sun Jan 26 01:55:45 UTC 2025


#71941: Provide legacy-support wrappers for CoreAudio.h and AudioToolbox.h
-------------------------+----------------------------
 Reporter:  fhgwright    |      Owner:  fhgwright
     Type:  enhancement  |     Status:  assigned
 Priority:  Low          |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  legacy-support
-------------------------+----------------------------
 The `legacy-support` PR [https://github.com/macports/macports-legacy-
 support/pull/49] proposed wrappers for these two headers.  As is, that PR
 isn't really appropriate at either the low or high levels, but the intent
 is captured here.

 The first step is #71940, to define the proper mechanism in general.
 Then, additions can be made for this particular case.

 The originally proposed additions are captured here:
 {{{
 #if MAC_OS_X_VERSION_MAX_ALLOWED < 120000
 #define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
 #endif

 #include_next <CoreAudio/CoreAudio.h>
 }}}
 {{{
 #if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 &&
 MAC_OS_X_VERSION_MAX_ALLOWED < 120000)
 #define kAudioHardwareServiceDeviceProperty_VirtualMainVolume
 kAudioHardwareServiceDeviceProperty_VirtualMasterVolume
 #define kAudioHardwareServiceDeviceProperty_VirtualMainBalance
 kAudioHardwareServiceDeviceProperty_VirtualMasterBalance
 #endif

 #include_next <AudioToolbox/AudioToolbox.h>
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71941>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list