mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:47:17 +00:00
dmsynth: Activate reverb and chorus according to effect flags.
This commit is contained in:
parent
d4f4bedc48
commit
95e19ae011
|
@ -565,6 +565,10 @@ static HRESULT WINAPI synth_Open(IDirectMusicSynth8 *iface, DMUS_PORTPARAMS *par
|
|||
}
|
||||
|
||||
fluid_settings_setnum(This->fluid_settings, "synth.sample-rate", actual.dwSampleRate);
|
||||
fluid_settings_setint(This->fluid_settings, "synth.reverb.active",
|
||||
!!(actual.dwEffectFlags & DMUS_EFFECT_REVERB));
|
||||
fluid_settings_setint(This->fluid_settings, "synth.chorus.active",
|
||||
!!(actual.dwEffectFlags & DMUS_EFFECT_CHORUS));
|
||||
if (!(This->fluid_synth = new_fluid_synth(This->fluid_settings))) return E_OUTOFMEMORY;
|
||||
if ((id = fluid_synth_add_sfont(This->fluid_synth, This->fluid_sfont)) == FLUID_FAILED)
|
||||
WARN("Failed to add fluid_sfont to fluid_synth\n");
|
||||
|
|
Loading…
Reference in a new issue