VirtualBox

Changeset 107622 in vbox


Ignore:
Timestamp:
Jan 10, 2025 10:03:16 AM (8 days ago)
Author:
vboxsync
Message:

src/VBox/Devices/Audio/DevHdaStream.cpp: Fixed warnings found by Parfait (repeated expansion of macro argument with side-effect). Harmless. jiraref:VBP-1424

File:
1 edited

Legend:

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

    r106061 r107622  
    747747
    748748    AssertLogRelReturn(cPeriods > 0, VERR_INTERNAL_ERROR_3);
    749     uint64_t const cbTransferPerSec  = RT_MAX(PDMAudioPropsFramesToBytes(&pCfg->Props, pCfg->Props.uHz),
     749    uint32_t const cbFramesPerSec    = PDMAudioPropsFramesToBytes(&pCfg->Props, pCfg->Props.uHz);
     750    uint64_t const cbTransferPerSec  = RT_MAX(cbFramesPerSec,
    750751                                              4096 /* zero div prevention: min is 6kHz, picked 4k in case I'm mistaken */);
    751752    unsigned uTransferHz = cbTransferPerSec * 1000 / cbMaxPeriod;
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