VirtualBox

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


Ignore:
Timestamp:
Jan 23, 2025 5:19:50 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167156
Message:

Audio: Added a new, optional config option 'CacheEnabled' (via global/per-VM 'VBoxInternal2/Audio/CacheEnabled') for audio drivers to disable caching code (if any). Currently only supported by DrvHostAudioWasApi, ignored everywhere else. bugref:10844

File:
1 edited

Legend:

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

    r107820 r107925  
    649649        HRESULT hrc = pMachine->COMGETTER(Name)(bstrTmp.asOutParam());                          H();
    650650        InsertConfigString(pCfg, "VmName", bstrTmp);
     651    }
     652
     653    /* Disabling caching code only is available for the HostAudioWas backend. */
     654    if (strcmp(pszDrvName, "HostAudioWas") == 0)
     655    {
     656        GetExtraDataBoth(pVirtualBox, pMachine, "VBoxInternal2/Audio/CacheEnabled", &strTmp); /* Since VBox > 7.1.16. */
     657        if (strTmp.isNotEmpty()) /* If value is not found, just skip. */
     658        {
     659            uint64_t const fCacheEnabled = strTmp.equalsIgnoreCase("true") || strTmp.equalsIgnoreCase("1");
     660            InsertConfigInteger(pCfg, "CacheEnabled", fCacheEnabled);
     661        }
    651662    }
    652663#endif
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