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
e9fdbe4d
Commit
e9fdbe4d
authored
Oct 16, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: Set DMUS_PATCH_PMSG bank LSB/MSB from instrument patch.
parent
10a1e533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
band.c
dlls/dmband/band.c
+8
-0
No files found.
dlls/dmband/band.c
View file @
e9fdbe4d
...
...
@@ -496,6 +496,7 @@ HRESULT band_send_messages(IDirectMusicBand *iface, IDirectMusicPerformance *per
LIST_FOR_EACH_ENTRY_REV
(
entry
,
&
This
->
instruments
,
struct
instrument_entry
,
entry
)
{
DWORD
patch
=
entry
->
instrument
.
dwPatch
;
DMUS_PATCH_PMSG
*
msg
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_AllocPMsg
(
performance
,
sizeof
(
*
msg
),
...
...
@@ -510,6 +511,13 @@ HRESULT band_send_messages(IDirectMusicBand *iface, IDirectMusicPerformance *per
msg
->
dwGroupID
=
1
;
msg
->
byInstrument
=
entry
->
instrument
.
dwPatch
;
msg
->
byInstrument
=
patch
&
0x7F
;
patch
>>=
8
;
msg
->
byLSB
=
patch
&
0x7f
;
patch
>>=
8
;
msg
->
byMSB
=
patch
&
0x7f
;
patch
>>=
8
;
if
(
FAILED
(
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
(
DMUS_PMSG
*
)
msg
))
||
FAILED
(
hr
=
IDirectMusicPerformance_SendPMsg
(
performance
,
(
DMUS_PMSG
*
)
msg
)))
{
...
...
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