Browse Source

Merge pull request #224 from saybur/audio-misc

Revert removing audio stop during START/STOP UNIT for CDs.
Alex Perez 2 năm trước cách đây
mục cha
commit
8d3222fd90
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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