mirror of
https://github.com/arcctgx/ARver
synced 2025-08-28 04:54:15 +02:00
The integer division is only correct in case of CDDA rips, where the audio file length is guaranteed to be a multiple of the CD sector size. For non-CDDA files the quotient must be rounded up to the next integer to correctly account for fractional CDDA sectors (e.g. 700 audio frames would require two 588-frame CDDA sectors, not one). Rounding the result does not change the behavior for CDDA input data (no fractional sectors are expected by definition). This is not really a problem because ARver is designed to be used with CDDA rips, and non-CDDA files were expected to fail verification anyway. But the clearly incorrect method of converting the audio frames to CDDA sectors was confusing when reading the code, even if it did not result in runtime errors. |
||
---|---|---|
.. | ||
data | ||
_audio_test.py | ||
checksums_test.py | ||
database_test.py | ||
discinfo_test.py | ||
helpers_test.py | ||
properties_test.py |