VirtualBox

Changeset 89268 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 25, 2021 11:37:03 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144611
Message:

DrvHostAudioCoreAudio: Build fix for ancient SDKs. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp

    r89258 r89268  
    5252#include <AudioToolbox/AudioQueue.h>
    5353#include <AudioUnit/AudioUnit.h>
     54
     55#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090 /* possibly 1080 */
     56# define kAudioHardwarePropertyTranslateUIDToDevice (AudioObjectPropertySelector)'uidd'
     57#endif
    5458
    5559
     
    520524        return idDevice;
    521525    }
     526    /** @todo test on < 10.9, see which status code and do a fallback using the
     527     *        enumeration code.  */
    522528    LogRelMax(64, ("CoreAudio: Failed to translate %s device UID '%s' to audio device ID: %#x\n", pszWhat, pszUid, orc));
    523529    return kAudioDeviceUnknown;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette