Changeset 55447 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Apr 27, 2015 12:59:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r55425 r55447 337 337 if (_aSigned) \ 338 338 return ((int64_t) aVal) << (32 - _aShift); \ 339 return ((int64_t) aVal - ( _aMax >>1)) << (32 - _aShift); \339 return ((int64_t) aVal - ((_aMax >> 1) + 1)) << (32 - _aShift); \ 340 340 } \ 341 341 \ … … 350 350 if (_aSigned) \ 351 351 return (_aType) (iVal >> (32 - _aShift)); \ 352 return ((_aType) ((iVal >> (32 - _aShift)) + ( _aMax >>1))); \352 return ((_aType) ((iVal >> (32 - _aShift)) + ((_aMax >> 1) + 1))); \ 353 353 } \ 354 354 \
Note:
See TracChangeset
for help on using the changeset viewer.