VirtualBox

Changeset 88820 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
May 3, 2021 10:35:05 AM (4 years ago)
Author:
vboxsync
Message:

Audio: Added geberuc asynchronous init to DrvAudio for use in WAS (and maybe others). bugref:9890

  • Added optional asynchronous init via a worker thread pool in DrvAudio (pfnStreamInitAsync).
  • Added interface for the backend to use the thread pool from the backend (pfnDoOnWorkerThread).
  • s/PDMIAUDIONOTIFYFROMHOST/PDMIHOSTAUDIOPORT/g
  • New BACKEND_READY state flag (a bit confusing wrt to INITIALIZED, but whatever).
  • Don't RESUME streams which aren't actually paused (on VM resume).
  • Restore the backend state correctly when the per-direction enable flag is changed in DrvAudio. Would enable the streams regardless of actual state.
  • Move more PDMAUDIOSTREAM members from the public structure and into the DRVAUDIOSTREAM.
  • ++
File:
1 edited

Legend:

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

    r88819 r88820  
    109109#ifdef VBOX_WITH_AUDIO_CALLBACKS
    110110    /** Upwards notification interface. */
    111     PPDMIAUDIONOTIFYFROMHOST pIAudioNotifyFromHost;
     111    PPDMIHOSTAUDIOPORT      pIHostAudioPort;
    112112#endif
    113113    /** Indicates whether we've registered default input device change listener. */
     
    10701070#ifdef VBOX_WITH_AUDIO_CALLBACKS
    10711071    /* Notify the driver/device above us about possible changes in devices. */
    1072     if (pThis->pIAudioNotifyFromHost)
    1073         pThis->pIAudioNotifyFromHost->pfnNotifyDevicesChanged(pThis->pIAudioNotifyFromHost);
     1072    if (pThis->pIHostAudioPort)
     1073        pThis->pIHostAudioPort->pfnNotifyDevicesChanged(pThis->pIHostAudioPort);
    10741074#endif
    10751075
     
    25992599     * Query the notification interface from the driver/device above us.
    26002600     */
    2601     pThis->pIAudioNotifyFromHost = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIAUDIONOTIFYFROMHOST);
    2602     Assert(pThis->pIAudioNotifyFromHost);
     2601    pThis->pIHostAudioPort = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIHOSTAUDIOPORT);
     2602    Assert(pThis->pIHostAudioPort);
    26032603#endif
    26042604
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