Support absolute LBAs now

This commit is contained in:
Jaby
2023-02-20 12:30:55 +01:00
parent 362c43509d
commit 6aecc8d9c2
6 changed files with 84 additions and 46 deletions

View File

@@ -72,9 +72,7 @@ namespace JabyEngine {
}
static constexpr CDTimeStamp from(const FileInfo& file_info) {
// Only for now
const auto lba = file_info.lba + 2*MaxSector;
return CDTimeStamp::from(lba);
return CDTimeStamp::from(file_info.lba);
}
constexpr uint8_t get_min_cd() const {