Merge pull request #175 from libretro/master

[libretro] merge libretro repository changes (mono output option + YM3438 core build fixes for some compilers)
This commit is contained in:
ekeeke 2017-09-26 09:54:41 +02:00 committed by GitHub
commit e215268169
3 changed files with 13 additions and 3 deletions

View File

@ -42,6 +42,7 @@
* version: 1.0.2
*/
#include <string.h>
#include "ym3438.h"
enum {

View File

@ -45,7 +45,7 @@
#ifndef YM3438_H
#define YM3438_H
#include <inttypes.h>
#include <stdint.h>
typedef uintptr_t Bitu;
typedef intptr_t Bits;

View File

@ -1033,6 +1033,15 @@ static void check_variables(void)
}
}
var.key = "genesis_plus_gx_sound_output";
environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var);
{
if (!strcmp(var.value, "mono"))
config.mono = 1;
else if (!strcmp(var.value, "stereo"))
config.mono = 0;
}
var.key = "genesis_plus_gx_audio_filter";
environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var);
{
@ -1646,12 +1655,12 @@ void retro_set_environment(retro_environment_t cb)
{ "genesis_plus_gx_lock_on", "Cartridge lock-on; disabled|game genie|action replay (pro)|sonic & knuckles" },
{ "genesis_plus_gx_ym2413", "Master System FM; auto|disabled|enabled" },
{ "genesis_plus_gx_dac_bits", "YM2612 DAC quantization; disabled|enabled" },
#ifdef HAVE_YM3438_CORE
{ "genesis_plus_gx_ym3438", "YM2612/YM3438 core; mame|nuked opn2" },
#endif
{ "genesis_plus_gx_audio_filter", "Audio filter; disabled|low-pass" },
{ "genesis_plus_gx_sound_output", "Sound output; stereo|mono" },
{ "genesis_plus_gx_lowpass_range", "Low-pass filter %; 60|65|70|75|80|85|90|95|5|10|15|20|25|30|35|40|45|50|55"},
#if HAVE_EQ