winecoreaudio: Fix a float cast in the computation of MIDI volume.

This commit is contained in:
Jörg Höhle 2010-01-27 19:03:47 +01:00 committed by Alexandre Julliard
parent f6aaddbd3b
commit ffeef37be2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}