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
840923ee
Commit
840923ee
authored
Nov 06, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Use generators to set root key and fine tune.
parent
a303bb39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
synth.c
dlls/dmsynth/synth.c
+2
-2
No files found.
dlls/dmsynth/synth.c
View file @
840923ee
...
...
@@ -1739,7 +1739,6 @@ static void set_default_voice_connections(fluid_voice_t *fluid_voice)
fluid_voice_gen_set
(
fluid_voice
,
GEN_KEYNUM
,
-
1
.);
fluid_voice_gen_set
(
fluid_voice
,
GEN_VELOCITY
,
-
1
.);
fluid_voice_gen_set
(
fluid_voice
,
GEN_SCALETUNE
,
100
.
0
);
fluid_voice_gen_set
(
fluid_voice
,
GEN_OVERRIDEROOTKEY
,
-
1
.);
add_voice_connections
(
fluid_voice
,
&
list
,
connections
);
}
...
...
@@ -1773,7 +1772,6 @@ static int synth_preset_noteon(fluid_preset_t *fluid_preset, fluid_synth_t *flui
fluid_sample_set_sound_data
(
fluid_sample
,
wave
->
samples
,
NULL
,
wave
->
sample_count
,
wave
->
format
.
nSamplesPerSec
,
TRUE
);
fluid_sample_set_pitch
(
fluid_sample
,
region
->
wave_sample
.
usUnityNote
,
region
->
wave_sample
.
sFineTune
);
if
(
!
(
fluid_voice
=
fluid_synth_alloc_voice
(
synth
->
fluid_synth
,
fluid_sample
,
chan
,
key
,
vel
)))
{
...
...
@@ -1823,6 +1821,8 @@ static int synth_preset_noteon(fluid_preset_t *fluid_preset, fluid_synth_t *flui
fluid_voice_gen_set
(
fluid_voice
,
GEN_STARTLOOPADDROFS
,
8
+
loop
->
ulStart
);
fluid_voice_gen_set
(
fluid_voice
,
GEN_ENDLOOPADDROFS
,
8
+
loop
->
ulStart
+
loop
->
ulLength
);
}
fluid_voice_gen_set
(
fluid_voice
,
GEN_OVERRIDEROOTKEY
,
region
->
wave_sample
.
usUnityNote
);
fluid_voice_gen_set
(
fluid_voice
,
GEN_FINETUNE
,
region
->
wave_sample
.
sFineTune
);
LIST_FOR_EACH_ENTRY
(
articulation
,
&
instrument
->
articulations
,
struct
articulation
,
entry
)
add_voice_connections
(
fluid_voice
,
&
articulation
->
list
,
articulation
->
connections
);
LIST_FOR_EACH_ENTRY
(
articulation
,
&
region
->
articulations
,
struct
articulation
,
entry
)
...
...
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