VirtualBox

Changeset 87986 in vbox


Ignore:
Timestamp:
Mar 5, 2021 9:00:57 PM (4 years ago)
Author:
vboxsync
Message:

DrvAudioCommon: Explain how do DrvAudioHlpFramesToMilli and such without using floating point.

File:
1 edited

Legend:

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

    r87861 r87986  
    13451345        return 0;
    13461346
     1347    /* @todo r=bird: How to do this w/o any floating point:
     1348    * @code
     1349    *  ASMMultU32ByU32DivByU32(cFrames, RT_MS_1SEC, pProps->uHz);
     1350    * // or
     1351    *  (uint64_t)cFrames * RT_MS_1SEC / pProps->uHz
     1352    * @endcode
     1353    */
    13471354    return cFrames / ((double)pProps->uHz / (double)RT_MS_1SEC);
    13481355}
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