diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-23 21:16:55 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-23 21:16:55 +0900 |
commit | c3347df0fbc1562d2a80f7ec9d99acbc0c6f2cbd (patch) | |
tree | efa0095c1a52f895de130aa9ed8be718bce92d60 /gtk/wavesave.c | |
parent | 941112d117c09453ac55911f739a10fc8e22fd91 (diff) |
gtk: add support for changing settings
Diffstat (limited to 'gtk/wavesave.c')
-rw-r--r-- | gtk/wavesave.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/wavesave.c b/gtk/wavesave.c index 0af656f..115f3fb 100644 --- a/gtk/wavesave.c +++ b/gtk/wavesave.c @@ -5,6 +5,7 @@ #include "libopna/opna.h" #include "libopna/opnatimer.h" #include "common/fmplayer_common.h" +#include "configdialog.h" enum { SRATE = 55467, @@ -168,6 +169,11 @@ static void wavesave(GtkWindow *parent, } struct thread_write_data *tdata = g_new0(struct thread_write_data, 1); fmplayer_init_work_opna(&tdata->work, &tdata->ppz8, &tdata->opna, &tdata->timer, tdata->adpcm_ram); + opna_ssg_set_mix(&tdata->opna.ssg, fmplayer_config.ssg_mix); + opna_ssg_set_ymf288(&tdata->opna.ssg, &tdata->opna.resampler, fmplayer_config.ssg_ymf288); + ppz8_set_interpolation(&tdata->ppz8, fmplayer_config.ppz8_interp); + opna_fm_set_hires_sin(&tdata->opna.fm, fmplayer_config.fm_hires_sin); + opna_fm_set_hires_env(&tdata->opna.fm, fmplayer_config.fm_hires_env); fmplayer_file_load(&tdata->work, fmfile, loopcnt); tdata->fadeout.timer = &tdata->timer; tdata->fadeout.work = &tdata->work; |