Quellcode durchsuchen

Adjust playback length to match observed requests from hosts.

saybur vor 2 Jahren
Ursprung
Commit
f31795640e
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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