Commits on Source (4)
-
Steve Lhomme authored
The LBAPregap() function transforms the gap in seconds to frames/LBA. It avoids using magic number in the code. The CDDB hash assumes the first track starts at 2s (which is not always true) so we add the offset to each track.
3e8b98b8 -
Steve Lhomme authored
i_size was accumulating the p_sectors[track+1].i_lba - p_sectors[track].i_lba difference for each track with a factor. It's equivalent to p_sectors[p_toc->i_tracks].i_lba - p_sectors[0].i_lba
0901a5a3 -
Steve Lhomme authored294346b1
-
Steve Lhomme authored
Do the cast to integers onces
8e127ccd