mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
audio: add option to switch off SSG-EG
This commit is contained in:
parent
1dbda5f894
commit
324bd6852e
9 changed files with 21 additions and 17 deletions
|
@ -499,6 +499,7 @@ static menu_entry e_menu_adv_options[] =
|
|||
mee_range_h ("Overclock M68k (%)", MA_OPT2_OVERCLOCK_M68K,currentConfig.overclock_68k, 0, 1000, h_ovrclk),
|
||||
mee_onoff ("Emulate Z80", MA_OPT2_ENABLE_Z80, PicoIn.opt, POPT_EN_Z80),
|
||||
mee_onoff ("Emulate YM2612 (FM)", MA_OPT2_ENABLE_YM2612, PicoIn.opt, POPT_EN_FM),
|
||||
mee_onoff ("Disable YM2612 SSG-EG", MA_OPT2_DISABLE_YM_SSG,PicoIn.opt, POPT_DIS_FM_SSGEG),
|
||||
mee_onoff ("Emulate SN76496 (PSG)", MA_OPT2_ENABLE_SN76496,PicoIn.opt, POPT_EN_PSG),
|
||||
mee_onoff ("gzip savestates", MA_OPT2_GZIP_STATES, currentConfig.EmuOpt, EOPT_GZIP_SAVES),
|
||||
mee_onoff ("Don't save last used ROM", MA_OPT2_NO_LAST_ROM, currentConfig.EmuOpt, EOPT_NO_AUTOSVCFG),
|
||||
|
|
|
@ -48,6 +48,7 @@ typedef enum
|
|||
MA_OPT2_VSYNC,
|
||||
MA_OPT2_ENABLE_Z80,
|
||||
MA_OPT2_ENABLE_YM2612,
|
||||
MA_OPT2_DISABLE_YM_SSG,
|
||||
MA_OPT2_ENABLE_SN76496,
|
||||
MA_OPT2_GZIP_STATES,
|
||||
MA_OPT2_NO_LAST_ROM,
|
||||
|
|
|
@ -282,7 +282,7 @@ void sharedmem940_finish(void)
|
|||
}
|
||||
|
||||
|
||||
void YM2612Init_940(int baseclock, int rate)
|
||||
void YM2612Init_940(int baseclock, int rate, int ssg)
|
||||
{
|
||||
static int oldrate;
|
||||
|
||||
|
@ -339,7 +339,7 @@ void YM2612Init_940(int baseclock, int rate)
|
|||
memset(shared_ctl, 0, sizeof(*shared_ctl));
|
||||
|
||||
/* cause local ym2612 to init REGS */
|
||||
YM2612Init_(baseclock, rate);
|
||||
YM2612Init_(baseclock, rate, ssg);
|
||||
|
||||
internal_reset();
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
void sharedmem940_init(void);
|
||||
void sharedmem940_finish(void);
|
||||
|
||||
void YM2612Init_940(int baseclock, int rate);
|
||||
void YM2612Init_940(int baseclock, int rate, int ssg);
|
||||
void YM2612ResetChip_940(void);
|
||||
int YM2612UpdateOne_940(int *buffer, int length, int stereo, int is_buf_empty);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ void Main940(void)
|
|||
case JOB940_INITALL:
|
||||
/* ym2612 */
|
||||
shared_ctl->writebuff0[0] = shared_ctl->writebuff1[0] = 0xffff;
|
||||
YM2612Init_(shared_ctl->baseclock, shared_ctl->rate);
|
||||
YM2612Init_(shared_ctl->baseclock, shared_ctl->rate, 0);
|
||||
/* Helix mp3 decoder */
|
||||
__malloc_init();
|
||||
shared_data->mp3dec = MP3InitDecoder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue