OPL: add the faster YMFM cores
This refactors the OPL interface in two drivers : Nuked and YMFM Nuked is used by default, YMFM can be enabled with [Sound] fm_driver = ymfm
This commit is contained in:
10
src/config.c
10
src/config.c
@@ -68,6 +68,7 @@
|
||||
#include <86box/plat.h>
|
||||
#include <86box/plat_dir.h>
|
||||
#include <86box/ui.h>
|
||||
#include <86box/snd_opl.h>
|
||||
|
||||
|
||||
typedef struct _list_ {
|
||||
@@ -1110,6 +1111,13 @@ load_sound(void)
|
||||
sound_is_float = 1;
|
||||
else
|
||||
sound_is_float = 0;
|
||||
|
||||
p = config_get_string(cat, "fm_driver", "nuked");
|
||||
if (!strcmp(p, "ymfm")) {
|
||||
fm_driver = FM_DRV_YMFM;
|
||||
} else {
|
||||
fm_driver = FM_DRV_NUKED;
|
||||
}
|
||||
}
|
||||
|
||||
/* Load "Network" section. */
|
||||
@@ -2630,6 +2638,8 @@ save_sound(void)
|
||||
else
|
||||
config_set_string(cat, "sound_type", (sound_is_float == 1) ? "float" : "int16");
|
||||
|
||||
config_set_string(cat, "fm_driver", (fm_driver == FM_DRV_NUKED) ? "nuked" : "ymfm");
|
||||
|
||||
delete_section_if_empty(cat);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user