Changeset 91530 in vbox for trunk/src/VBox
- Timestamp:
- Oct 1, 2021 8:00:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r91508 r91530 2082 2082 iMax = -iMin; 2083 2083 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); 2085 2085 2086 2086 while (cbToRead) … … 2102 2102 *pi16Src = INT16_MIN; 2103 2103 else 2104 *pi16Src = *pi16Src * dbRatio;2104 *pi16Src = (int16_t)(*pi16Src * dbRatio); 2105 2105 pi16Src++; 2106 2106 }
Note:
See TracChangeset
for help on using the changeset viewer.