winecoreaudio: Fix a float cast in the computation of MIDI volume.
This commit is contained in:
parent
f6aaddbd3b
commit
ffeef37be2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue