From 15ee2c4c0f18a8ab2963f0d9ac5ffab6d8ace777 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Tue, 29 Aug 2017 23:39:08 +0900 Subject: win32: apply settings on wavesave --- win32/wavesave.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/win32/wavesave.c b/win32/wavesave.c index 5be28b3..76a55f6 100644 --- a/win32/wavesave.c +++ b/win32/wavesave.c @@ -9,6 +9,7 @@ #include #include #include +#include "configdialog.h" enum { SRATE = 55467, @@ -99,6 +100,11 @@ static void wavesave(HWND parent, } *inst = (struct wavesave_instance){0}; fmplayer_init_work_opna(&inst->work, &inst->ppz8, &inst->opna, &inst->timer, inst->adpcm_ram); + opna_ssg_set_mix(&inst->opna.ssg, fmplayer_config.ssg_mix); + opna_ssg_set_ymf288(&inst->opna.ssg, &inst->opna.resampler, fmplayer_config.ssg_ymf288); + ppz8_set_interpolation(&inst->ppz8, fmplayer_config.ppz8_interp); + opna_fm_set_hires_sin(&inst->opna.fm, fmplayer_config.fm_hires_sin); + opna_fm_set_hires_env(&inst->opna.fm, fmplayer_config.fm_hires_env); fmplayer_file_load(&inst->work, fmfile, LOOPCNT); inst->fadeout.timer = &inst->timer; inst->fadeout.work = &inst->work; -- cgit v1.2.3