VirtualBox

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.
  • ++
File:
1 edited

Legend:

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

    r88761 r88819  
    14081408    pThis->IHostAudio.pfnGetDevices                 = drvHostAlsaAudioHA_GetDevices;
    14091409    pThis->IHostAudio.pfnGetStatus                  = drvHostAlsaAudioHA_GetStatus;
     1410    pThis->IHostAudio.pfnDoOnWorkerThread           = NULL;
     1411    pThis->IHostAudio.pfnStreamConfigHint           = NULL;
    14101412    pThis->IHostAudio.pfnStreamCreate               = drvHostAlsaAudioHA_StreamCreate;
     1413    pThis->IHostAudio.pfnStreamInitAsync            = NULL;
    14111414    pThis->IHostAudio.pfnStreamDestroy              = drvHostAlsaAudioHA_StreamDestroy;
    14121415    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