Previous 199869 Revisions Next

r32711 Monday 13th October, 2014 at 20:04:05 UTC by R. Belmont
(MESS) osdcore: reject invalid MIDI bytes with no status, fixes most 6850-based MIDI setups. [R. Belmont]
[src/osd]osdcore.c

trunk/src/osd/osdcore.c
r32710r32711
470470
471471//  printf("write: %02x (%d)\n", data, dev->xmit_cnt);
472472
473   // reject data bytes when no valid status exists
474   if ((dev->last_status == 0) && !(data & 0x80))
475   {
476      dev->xmit_cnt = 0;
477      return;
478   }
479
473480   if (dev->xmit_cnt >= 4)
474481   {
475482      printf("MIDI out: packet assembly overflow, contact MAMEdev!\n");

Previous 199869 Revisions Next


© 1997-2024 The MAME Team