Changeset 88171 in vbox
- Timestamp:
- Mar 18, 2021 1:43:19 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/HDAStream.cpp
r88170 r88171 1048 1048 return (uint32_t)RTCircBufFree(pStreamR3->State.pCircBuf); 1049 1049 return 0; 1050 }1051 1052 /**1053 * Converts frame count to wall clock ticks (WALCLK).1054 *1055 * @returns Wall clock ticks.1056 * @param pStream The stream to do the conversion for.1057 * @param cFrames Number of audio frames.1058 */1059 DECLINLINE(uint64_t) hdaR3StreamFramesToWalClk(PHDASTREAM pStreamShared, uint32_t cFrames)1060 {1061 const uint32_t uHz = RT_MAX(pStreamShared->State.Cfg.Props.uHz, 1 /* prevent div/0 */);1062 return ASMMultU32ByU32DivByU32(cFrames, 24000000 /* 24 MHz wall clock (WALCLK). */ , uHz);1063 1050 } 1064 1051
Note:
See TracChangeset
for help on using the changeset viewer.