VirtualBox

Changeset 88819 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 3, 2021 10:26:28 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144153
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.
  • ++
Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioRec.cpp

    r88761 r88819  
    11021102    pThis->IHostAudio.pfnGetDevices                 = NULL;
    11031103    pThis->IHostAudio.pfnGetStatus                  = drvAudioVideoRecHA_GetStatus;
     1104    pThis->IHostAudio.pfnDoOnWorkerThread           = NULL;
     1105    pThis->IHostAudio.pfnStreamConfigHint           = NULL;
    11041106    pThis->IHostAudio.pfnStreamCreate               = drvAudioVideoRecHA_StreamCreate;
     1107    pThis->IHostAudio.pfnStreamInitAsync            = NULL;
    11051108    pThis->IHostAudio.pfnStreamDestroy              = drvAudioVideoRecHA_StreamDestroy;
    11061109    pThis->IHostAudio.pfnStreamNotifyDeviceChanged  = NULL;
  • trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp

    r88761 r88819  
    725725    pThis->IHostAudio.pfnGetDevices                 = NULL;
    726726    pThis->IHostAudio.pfnGetStatus                  = drvAudioVrdeHA_GetStatus;
     727    pThis->IHostAudio.pfnDoOnWorkerThread           = NULL;
     728    pThis->IHostAudio.pfnStreamConfigHint           = NULL;
    727729    pThis->IHostAudio.pfnStreamCreate               = drvAudioVrdeHA_StreamCreate;
     730    pThis->IHostAudio.pfnStreamInitAsync            = NULL;
    728731    pThis->IHostAudio.pfnStreamDestroy              = drvAudioVrdeHA_StreamDestroy;
    729732    pThis->IHostAudio.pfnStreamNotifyDeviceChanged  = NULL;
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