mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sound, fix ym2612 ladder effect, add option
This commit is contained in:
parent
b55e4e1b2f
commit
23cd73bc8f
9 changed files with 46 additions and 22 deletions
|
@ -1594,6 +1594,15 @@ static void update_variables(bool first_run)
|
|||
PicoIn.opt &= ~POPT_EN_DRC;
|
||||
#endif
|
||||
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_dacnoise";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
|
||||
if (strcmp(var.value, "enabled") == 0)
|
||||
PicoIn.opt |= POPT_EN_FM_DAC;
|
||||
else
|
||||
PicoIn.opt &= ~POPT_EN_FM_DAC;
|
||||
}
|
||||
|
||||
old_snd_filter = PicoIn.opt & POPT_EN_SNDFILTER;
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_audio_filter";
|
||||
|
|
|
@ -64,7 +64,7 @@ struct retro_core_option_v2_category option_cats_us[] = {
|
|||
{
|
||||
"audio",
|
||||
"Audio",
|
||||
"Configure sample rate / emulated audio devices / low pass filter."
|
||||
"Configure sample rate / emulated audio devices / low pass filter / DAC noise."
|
||||
},
|
||||
{
|
||||
"input",
|
||||
|
@ -231,11 +231,25 @@ struct retro_core_option_v2_definition option_defs_us[] = {
|
|||
},
|
||||
"off"
|
||||
},
|
||||
{
|
||||
"picodrive_dacnoise",
|
||||
"Mega Drive FM DAC noise",
|
||||
NULL,
|
||||
"Enable emulation of YM2612 DAC noise. This option generates a distortion which existed on most Model 1 Mega Drive/Genesis, but not on newer models.",
|
||||
NULL,
|
||||
"audio",
|
||||
{
|
||||
{ "off", "disabled" },
|
||||
{ "on", "enabled" },
|
||||
{ NULL, NULL },
|
||||
},
|
||||
"off"
|
||||
},
|
||||
{
|
||||
"picodrive_audio_filter",
|
||||
"Audio Filter",
|
||||
NULL,
|
||||
"Enable a low pass audio filter to better simulate the characteristic sound of a Model 1 Genesis. This option is ignored when running Master System and PICO titles. Only the Genesis and its add-on hardware (Sega CD, 32X) employed a physical low pass filter.",
|
||||
"Enable a low pass audio filter to better simulate the characteristic sound of a Model 1 Mega Drive/Genesis. Note that although only the Genesis and its add-on hardware (Sega CD, 32X) employed a physical low pass filter, the filter setting is not restricted to that.",
|
||||
NULL,
|
||||
"audio",
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue