Changeset 107622 in vbox
- Timestamp:
- Jan 10, 2025 10:03:16 AM (8 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHdaStream.cpp
r106061 r107622 747 747 748 748 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, 750 751 4096 /* zero div prevention: min is 6kHz, picked 4k in case I'm mistaken */); 751 752 unsigned uTransferHz = cbTransferPerSec * 1000 / cbMaxPeriod;
Note:
See TracChangeset
for help on using the changeset viewer.