VirtualBox

Changeset 87436 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jan 26, 2021 4:59:29 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142445
Message:

Audio/HDA+AC97: Made the device emulation's internal [in|out]put FIFO buffer size configurable via extra data "VBoxInternal2/Audio/Device/BufSize[In|Out]Ms" (optional, defaults to 1000ms if not set). ticketoem2ref:36

File:
1 edited

Legend:

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

    r87395 r87436  
    29622962            const uint64_t uTimerHz = strTmp.toUInt64();
    29632963
     2964            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Device/BufSizeInMs", &strTmp);
     2965            const uint64_t uBufSizeInMs = strTmp.toUInt64();
     2966
     2967            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Device/BufSizeOutMs", &strTmp);
     2968            const uint64_t uBufSizeOutMs = strTmp.toUInt64();
     2969
    29642970            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Debug/Enabled", &strTmp);
    29652971            const bool fDebugEnabled = strTmp.equalsIgnoreCase("true") || strTmp.equalsIgnoreCase("1");
     
    29963002                    if (uTimerHz)
    29973003                        InsertConfigInteger(pCfg,   "TimerHz",              uTimerHz);
     3004                    if (uBufSizeInMs)
     3005                        InsertConfigInteger(pCfg,   "BufSizeInMs",          uBufSizeInMs);
     3006                    if (uBufSizeOutMs)
     3007                        InsertConfigInteger(pCfg,   "BufSizeOutMs",         uBufSizeOutMs);
    29983008                    InsertConfigInteger(pCfg,       "DebugEnabled",         fDebugEnabled);
    29993009                    if (strDebugPathOut.isNotEmpty())
     
    30313041                    if (uTimerHz)
    30323042                        InsertConfigInteger(pCfg,   "TimerHz",              uTimerHz);
     3043                    if (uBufSizeInMs)
     3044                        InsertConfigInteger(pCfg,   "BufSizeInMs",          uBufSizeInMs);
     3045                    if (uBufSizeOutMs)
     3046                        InsertConfigInteger(pCfg,   "BufSizeOutMs",         uBufSizeOutMs);
    30333047                    InsertConfigInteger(pCfg,       "DebugEnabled",         fDebugEnabled);
    30343048                    if (strDebugPathOut.isNotEmpty())
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