From 55d2eab229b563aa0e0f5f9319570876c525ccb8 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 25 Mar 2025 19:52:51 +0300 Subject: Implemented support of YMFM emulators and OPL2 --- utils/vlc_codec/libadlmidi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils/vlc_codec/libadlmidi.c') diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c index 61f132e..1ef1387 100644 --- a/utils/vlc_codec/libadlmidi.c +++ b/utils/vlc_codec/libadlmidi.c @@ -164,6 +164,11 @@ static const char * const emulator_type_descriptions[] = N_("DOSBox"), N_("Opal"), N_("Java OPL3"), + N_("ESFMu"), +#ifndef ADLMIDI_DISABLE_YMFM_EMULATOR + N_("YMFM OPL2"), + N_("YMFM OPL3"), +#endif NULL }; @@ -299,7 +304,7 @@ static int Open (vlc_object_t *p_this) } adl_setVolumeRangeModel(p_sys->synth, var_InheritInteger(p_this, CONFIG_PREFIX "volume-model")); - adl_setChannelAllocMode(p_sys->synth, var_InheritInteger(p_this, CONFIG_PREFIX "channel-allocation")); + adl_setChannelAllocMode(p_sys->synth, var_InheritInteger(p_this, CONFIG_PREFIX "channel-allocation")); adl_setFullRangeBrightness(p_sys->synth, var_InheritBool(p_this, CONFIG_PREFIX "full-range-brightness")); -- cgit v1.2.3