Changeset 88626 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Apr 21, 2021 9:58:08 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143928
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioinline.h
r88486 r88626 881 881 882 882 /** 883 * Converts frames to NT ticks (100 ns units). 884 * 885 * @returns NT ticks. 886 * @param pProps The PCM properties to use. 887 * @param cFrames Number of audio frames to convert. 888 * @note No rounding here, result is floored. 889 */ 890 DECLINLINE(uint64_t) PDMAudioPropsFramesToNtTicks(PCPDMAUDIOPCMPROPS pProps, uint32_t cFrames) 891 { 892 AssertPtrReturn(pProps, 0); 893 894 /* Check input to prevent division by chainsaw: */ 895 uint32_t const uHz = pProps->uHz; 896 if (uHz) 897 return ASMMultU32ByU32DivByU32(cFrames, RT_NS_1SEC / 100, uHz); 898 return 0; 899 } 900 901 /** 883 902 * Converts milliseconds to frames. 884 903 *
Note:
See TracChangeset
for help on using the changeset viewer.