VirtualBox

Changeset 91530 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 1, 2021 8:00:44 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: fix warning

File:
1 edited

Legend:

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

    r91508 r91530  
    20822082                iMax = -iMin;
    20832083
    2084             dbRatio = iMax == 0 ? 1 : ((double)INT16_MAX * dbNormalizePercent) / ((double)iMax * 100.0);
     2084            dbRatio = iMax == 0 ? 1.0 : ((double)INT16_MAX * dbNormalizePercent) / ((double)iMax * 100.0);
    20852085
    20862086            while (cbToRead)
     
    21022102                        *pi16Src = INT16_MIN;
    21032103                    else
    2104                         *pi16Src = *pi16Src * dbRatio;
     2104                        *pi16Src = (int16_t)(*pi16Src * dbRatio);
    21052105                    pi16Src++;
    21062106                }
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