Sfoglia il codice sorgente

Merge pull request #224 from saybur/audio-misc

Revert removing audio stop during START/STOP UNIT for CDs.
Alex Perez 2 anni fa
parent
commit
8d3222fd90
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/ZuluSCSI_cdrom.cpp

+ 4 - 0
src/ZuluSCSI_cdrom.cpp

@@ -1492,6 +1492,10 @@ extern "C" int scsiCDRomCommand()
     uint8_t command = scsiDev.cdb[0];
     if (command == 0x1B)
     {
+#if ENABLE_AUDIO_OUTPUT
+        // terminate audio playback if active on this target (MMC-1 Annex C)
+        audio_stop(img.scsiId & 7);
+#endif
         if ((scsiDev.cdb[4] & 2))
         {
             // CD-ROM load & eject