Previous 199869 Revisions Next

r21550 Sunday 3rd March, 2013 at 17:29:33 UTC by R. Belmont
(MESS) Fix AES cart swap sound crash. [R. Belmont]
[src/mame/drivers]neogeo.c

trunk/src/mame/drivers/neogeo.c
r21549r21550
13031303      }
13041304
13051305
1306      /*
1307          Resetting a sound device causes the core to update() it and generate samples if it's not up to date.
1308          Thus we preemptively reset it here while the old pointers are still valid so it's up to date and
1309          doesn't generate samples below when we reset it for the new pointers.
1310      */
1311      ym->reset();
13061312      size = image.get_software_region_length("ymsnd");
13071313      machine().memory().region_free(":ymsnd");
13081314      machine().memory().region_alloc(":ymsnd",size,1, ENDIANNESS_LITTLE);
r21549r21550
13161322      }
13171323      else
13181324         machine().memory().region_free(":ymsnd.deltat");  // removing the region will fix sound glitches in non-Delta-T games
1319      ym->reset();
1325      ym->reset();   // and this makes the new pointers take effect
13201326      size = image.get_software_region_length("sprites");
13211327      machine().memory().region_free(":sprites");
13221328      machine().memory().region_alloc(":sprites",size,1, ENDIANNESS_LITTLE);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team