Mercurial > repos > blastem
comparison vgmplay.c @ 1327:57637d17b59e
Fix vgmplay target for ternary tree changes
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 22 Apr 2017 01:22:47 -0700 |
parents | c95893007a83 |
children | 55d357bb4398 |
comparison
equal
deleted
inserted
replaced
1326:071e761bcdcf | 1327:57637d17b59e |
---|---|
102 uint32_t opts = 0; | 102 uint32_t opts = 0; |
103 if (argc >= 3 && !strcmp(argv[2], "-y")) { | 103 if (argc >= 3 && !strcmp(argv[2], "-y")) { |
104 opts |= YM_OPT_WAVE_LOG; | 104 opts |= YM_OPT_WAVE_LOG; |
105 } | 105 } |
106 | 106 |
107 char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0").ptrval; | 107 char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0", TVAL_PTR).ptrval; |
108 uint32_t lowpass_cutoff = lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : 3390; | 108 uint32_t lowpass_cutoff = lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : 3390; |
109 | 109 |
110 ym2612_context y_context; | 110 ym2612_context y_context; |
111 ym_init(&y_context, render_sample_rate(), MCLKS_NTSC, MCLKS_PER_YM, render_audio_buffer(), opts, lowpass_cutoff); | 111 ym_init(&y_context, render_sample_rate(), MCLKS_NTSC, MCLKS_PER_YM, render_audio_buffer(), opts, lowpass_cutoff); |
112 | 112 |