Jörg Höhle : winecoreaudio: Fix a float cast in the computation of MIDI volume.
Alexandre Julliard
julliard at winehq.org
Tue Feb 2 10:45:29 CST 2010
Module: wine
Branch: master
Commit: ffeef37be214da8ae07262882c624fa925877929
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ffeef37be214da8ae07262882c624fa925877929
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Wed Jan 27 19:03:47 2010 +0100
winecoreaudio: Fix a float cast in the computation of MIDI volume.
---
dlls/winecoreaudio.drv/midi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winecoreaudio.drv/midi.c b/dlls/winecoreaudio.drv/midi.c
index 6d988db..a31a076 100644
--- a/dlls/winecoreaudio.drv/midi.c
+++ b/dlls/winecoreaudio.drv/midi.c
@@ -546,7 +546,7 @@ static DWORD MIDIOut_GetVolume(WORD wDevID, DWORD *lpdwVolume)
float right;
AudioUnit_GetVolume(destinations[wDevID].synth, &left, &right);
- *lpdwVolume = ((WORD) left * 0xFFFFl) + (((WORD) right * 0xFFFFl) << 16);
+ *lpdwVolume = (WORD) (left * 0xFFFF) + ((WORD) (right * 0xFFFF) << 16);
return MMSYSERR_NOERROR;
}
More information about the wine-cvs
mailing list