VirtualBox

Changeset 85655 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 10, 2020 8:02:03 AM (4 years ago)
Author:
vboxsync
Message:

Devices/Audio/DrvHostCoreAudio: Properly request authorization for audio input as required with Mojave and newer, bugref:9805

Location:
trunk/src/VBox/Devices
Files:
1 added
2 edited

Legend:

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

    r85199 r85655  
    129129} COREAUDIOUNIT, *PCOREAUDIOUNIT;
    130130
     131
     132DECLHIDDEN(int) coreAudioInputPermissionCheck(void);
    131133
    132134/*******************************************************************************
     
    15781580
    15791581    int rc = VINF_SUCCESS;
     1582
     1583    if (fIn)
     1584    {
     1585        rc = coreAudioInputPermissionCheck();
     1586        if (RT_FAILURE(rc))
     1587            return rc;
     1588    }
    15801589
    15811590    /* Create the recording device's out format based on our required audio settings. */
  • trunk/src/VBox/Devices/Makefile.kmk

    r85507 r85655  
    245245        -framework Carbon \
    246246        -framework DiskArbitration \
    247         -framework SystemConfiguration
     247        -framework SystemConfiguration \
     248        -framework AVFoundation \
     249        -framework Foundation
    248250 VBoxDD_LDFLAGS.linux    = $(VBOX_GCC_NO_UNDEFINED)
    249251
     
    623625 ifeq ($(KBUILD_TARGET),darwin)
    624626  VBoxDD_SOURCES += \
    625         Audio/DrvHostCoreAudio.cpp
     627        Audio/DrvHostCoreAudio.cpp \
     628  Audio/DrvHostCoreAudio-auth.mm
    626629 endif
    627630
Note: See TracChangeset for help on using the changeset viewer.

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