diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-29 23:39:08 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-29 23:39:08 +0900 |
commit | 15ee2c4c0f18a8ab2963f0d9ac5ffab6d8ace777 (patch) | |
tree | f85644e55d5e0d09185ba593dbae930af697bd5a /win32/wavesave.c | |
parent | 64a61d313cf02ddbffd876b777ddd76ebe4ba084 (diff) |
win32: apply settings on wavesave
Diffstat (limited to 'win32/wavesave.c')
-rw-r--r-- | win32/wavesave.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <stdlib.h> #include <windowsx.h> #include <commctrl.h> +#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; |