Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b147a3c4
Commit
b147a3c4
authored
Oct 23, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Offset the loop points by 8 frames.
Fixes out-of-tune Harmonica from gm.dls.
parent
015eb45a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
synth.c
dlls/dmsynth/synth.c
+5
-2
No files found.
dlls/dmsynth/synth.c
View file @
b147a3c4
...
...
@@ -1772,8 +1772,11 @@ static int synth_preset_noteon(fluid_preset_t *fluid_preset, fluid_synth_t *flui
else
FIXME
(
"Unsupported loop type %lu
\n
"
,
loop
->
ulType
);
fluid_voice_gen_set
(
fluid_voice
,
GEN_STARTLOOPADDROFS
,
loop
->
ulStart
);
fluid_voice_gen_set
(
fluid_voice
,
GEN_ENDLOOPADDROFS
,
loop
->
ulStart
+
loop
->
ulLength
);
/* When copy_data is TRUE, fluid_sample_set_sound_data() adds
* 8-frame padding around the sample data. Offset the loop points
* to compensate for this. */
fluid_voice_gen_set
(
fluid_voice
,
GEN_STARTLOOPADDROFS
,
8
+
loop
->
ulStart
);
fluid_voice_gen_set
(
fluid_voice
,
GEN_ENDLOOPADDROFS
,
8
+
loop
->
ulStart
+
loop
->
ulLength
);
}
LIST_FOR_EACH_ENTRY
(
articulation
,
&
instrument
->
articulations
,
struct
articulation
,
entry
)
add_voice_connections
(
fluid_voice
,
&
articulation
->
list
,
articulation
->
connections
);
...
...
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