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
d4f4bedc
Commit
d4f4bedc
authored
Oct 29, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Correctly handle internal connections with controls.
Fixes modulation wheel effects.
parent
e45dcf4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
synth.c
dlls/dmsynth/synth.c
+12
-14
No files found.
dlls/dmsynth/synth.c
View file @
d4f4bedc
...
...
@@ -1497,9 +1497,9 @@ static BOOL mod_from_connection(USHORT source, USHORT transform, UINT *fluid_sou
return
TRUE
;
}
static
BOOL
add_mod_from_connection
(
fluid_voice_t
*
fluid_voice
,
const
CONNECTION
*
conn
,
UINT
src1
,
UINT
flags1
,
UINT
src2
,
UINT
flags2
)
static
BOOL
add_mod_from_connection
(
fluid_voice_t
*
fluid_voice
,
const
CONNECTION
*
conn
)
{
UINT
src1
=
FLUID_MOD_NONE
,
flags1
=
0
,
src2
=
FLUID_MOD_NONE
,
flags2
=
0
;
fluid_mod_t
*
mod
;
UINT
gen
=
-
1
;
double
value
;
...
...
@@ -1520,10 +1520,15 @@ static BOOL add_mod_from_connection(fluid_voice_t *fluid_voice, const CONNECTION
if
(
conn
->
usControl
!=
CONN_SRC_NONE
&&
gen
!=
-
1
)
{
src1
=
src2
;
flags1
=
flags2
;
src2
=
0
;
flags2
=
0
;
if
(
!
mod_from_connection
(
conn
->
usControl
,
(
conn
->
usTransform
>>
4
)
&
0x3f
,
&
src1
,
&
flags1
))
return
FALSE
;
}
else
{
if
(
!
mod_from_connection
(
conn
->
usSource
,
(
conn
->
usTransform
>>
10
)
&
0x3f
,
&
src1
,
&
flags1
))
return
FALSE
;
if
(
!
mod_from_connection
(
conn
->
usControl
,
(
conn
->
usTransform
>>
4
)
&
0x3f
,
&
src2
,
&
flags2
))
return
FALSE
;
}
if
(
gen
==
-
1
&&
!
gen_from_connection
(
conn
,
&
gen
))
return
FALSE
;
...
...
@@ -1555,18 +1560,11 @@ static void add_voice_connections(fluid_voice_t *fluid_voice, const CONNECTIONLI
for
(
i
=
0
;
i
<
list
->
cConnections
;
i
++
)
{
UINT
src1
=
FLUID_MOD_NONE
,
flags1
=
0
,
src2
=
FLUID_MOD_NONE
,
flags2
=
0
;
const
CONNECTION
*
conn
=
connections
+
i
;
if
(
set_gen_from_connection
(
fluid_voice
,
conn
))
continue
;
if
(
!
mod_from_connection
(
conn
->
usSource
,
(
conn
->
usTransform
>>
10
)
&
0x3f
,
&
src1
,
&
flags1
))
continue
;
if
(
!
mod_from_connection
(
conn
->
usControl
,
(
conn
->
usTransform
>>
4
)
&
0x3f
,
&
src2
,
&
flags2
))
continue
;
add_mod_from_connection
(
fluid_voice
,
conn
,
src1
,
flags1
,
src2
,
flags2
);
add_mod_from_connection
(
fluid_voice
,
conn
);
}
}
...
...
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