Browse Source

Adjust playback length to match observed requests from hosts.

saybur 2 năm trước cách đây
mục cha
commit
f31795640e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/BlueSCSI_cdrom.cpp

+ 2 - 1
src/BlueSCSI_cdrom.cpp

@@ -1001,7 +1001,8 @@ static void doPlayAudio(uint32_t lba, uint32_t length)
         }
 
         // playback request appears to be sane, so perform it
-        if (!audio_play(target_id, &(img.file), offset, offset + length * 2352, false))
+        // see earlier note for context on the block length below
+        if (!audio_play(target_id, &(img.file), offset, offset + length * 2048, false))
         {
             // Underlying data/media error? Fake a disk scratch, which should
             // be a condition most CD-DA players are expecting