Make the Yamaha YMF701/71x use the YMF289B variant of the OPL3 per the YMF-715 datasheet

This commit is contained in:
win2kgamer
2025-12-03 17:40:23 -06:00
parent 3c56968921
commit f957b4bb33
2 changed files with 2 additions and 2 deletions

View File

@@ -428,7 +428,7 @@ ymf701_init(const device_t *info)
ymf701->sb->opl_mixer = ymf701;
ymf701->sb->opl_mix = ymf701_filter_opl;
fm_driver_get(FM_YMF262, &ymf701->sb->opl);
fm_driver_get(FM_YMF289B, &ymf701->sb->opl);
io_sethandler(ymf701->cur_sb_addr + 0, 0x0004, ymf701->sb->opl.read, NULL, NULL, ymf701->sb->opl.write, NULL, NULL, ymf701->sb->opl.priv);
io_sethandler(ymf701->cur_sb_addr + 8, 0x0002, ymf701->sb->opl.read, NULL, NULL, ymf701->sb->opl.write, NULL, NULL, ymf701->sb->opl.priv);
io_sethandler(0x0388, 0x0004, ymf701->sb->opl.read, NULL, NULL, ymf701->sb->opl.write, NULL, NULL, ymf701->sb->opl.priv);

View File

@@ -718,7 +718,7 @@ ymf71x_init(const device_t *info)
ymf71x->sb->opl_mixer = ymf71x;
ymf71x->sb->opl_mix = ymf71x_filter_opl;
fm_driver_get(FM_YMF262, &ymf71x->sb->opl);
fm_driver_get(FM_YMF289B, &ymf71x->sb->opl);
sound_add_handler(ymf71x_get_buffer, ymf71x);
music_add_handler(sb_get_music_buffer_sbpro, ymf71x->sb);