VirtualBox

Changeset 87367 in vbox


Ignore:
Timestamp:
Jan 22, 2021 1:33:36 PM (4 years ago)
Author:
vboxsync
Message:

Audio/Main: Made the device emulation's timer rate configurable via extra data "VBoxInternal2/Audio/Device/TimerHz" (optional). ticketoem2ref:36

File:
1 edited

Legend:

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

    r87242 r87367  
    29322932            hrc = audioAdapter->COMGETTER(AudioCodec)(&enmAudioCodec);                      H();
    29332933
     2934            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Device/TimerHz", &strTmp);
     2935            const uint64_t uTimerHz = strTmp.toUInt64();
     2936
    29342937            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Debug/Enabled", &strTmp);
    29352938            const bool fDebugEnabled = strTmp.equalsIgnoreCase("true") || strTmp.equalsIgnoreCase("1");
     
    29642967                        default: AssertFailedBreak();
    29652968                    }
     2969                    if (uTimerHz)
     2970                        InsertConfigInteger(pCfg,   "TimerHz",              uTimerHz);
    29662971                    InsertConfigInteger(pCfg,       "DebugEnabled",         fDebugEnabled);
    29672972                    if (strDebugPathOut.isNotEmpty())
     
    29832988                    InsertConfigInteger(pCfg,       "Port",                 0x220);
    29842989                    InsertConfigInteger(pCfg,       "Version",              0x0405);
     2990                    if (uTimerHz)
     2991                        InsertConfigInteger(pCfg,   "TimerHz",              uTimerHz);
    29852992                    break;
    29862993                }
     
    29953002                    hrc = pBusMgr->assignPCIDevice(pszAudioDevice, pInst);              H();
    29963003                    InsertConfigNode(pInst,         "Config",               &pCfg);
     3004                    if (uTimerHz)
     3005                        InsertConfigInteger(pCfg,   "TimerHz",              uTimerHz);
    29973006                    InsertConfigInteger(pCfg,       "DebugEnabled",         fDebugEnabled);
    29983007                    if (strDebugPathOut.isNotEmpty())
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