Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ffeef37b
Commit
ffeef37b
authored
Jan 27, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Fix a float cast in the computation of MIDI volume.
parent
f6aaddbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
midi.c
dlls/winecoreaudio.drv/midi.c
+1
-1
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
ffeef37b
...
@@ -546,7 +546,7 @@ static DWORD MIDIOut_GetVolume(WORD wDevID, DWORD *lpdwVolume)
...
@@ -546,7 +546,7 @@ static DWORD MIDIOut_GetVolume(WORD wDevID, DWORD *lpdwVolume)
float
right
;
float
right
;
AudioUnit_GetVolume
(
destinations
[
wDevID
].
synth
,
&
left
,
&
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
;
return
MMSYSERR_NOERROR
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment