Support CDDA alignment (can not be specified yet)

This commit is contained in:
Jaby
2024-07-28 21:42:09 -05:00
parent 4cb6e05e62
commit 73bbe0e805
7 changed files with 38 additions and 11 deletions

View File

@@ -80,6 +80,10 @@ impl Time {
self.sector as usize + self.second as usize*Self::MAX_SECTORS + self.minute as usize*Self::MAX_SECONDS*Self::MAX_SECTORS
}
pub const fn get(&self) -> (i32, i32, i32) {
(self.minute as i32, self.second as i32, self.sector as i32)
}
pub fn dump(&self) -> String {
format!("min: {}, sec: {}, sector: {}", self.minute, self.second, self.sector)
}