فهرست منبع

Adjust playback length to match observed requests from hosts.

saybur 2 سال پیش
والد
کامیت
f31795640e
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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