Skip to content

Conversation

@morio
Copy link
Collaborator

@morio morio commented Feb 25, 2025

In ZuluIDE repo, the issue ZuluIDE/ZuluIDE-firmware#179
Shows Alcohol 120% reporting different LBA offsets than the bin/cue
it mounts from the ZuluIDE. That particular bin/cue had both PREGAP
and INDEX 0 directives. The PREGAP offset wasn't carrying over the LBA
offset to the next tracks.

Using an accumulator for PREGAP offset and adding it to data_start
and track_start fixes the issue.

Added pregap offset adjustment to test/CUEParser_test.cpp

In ZuluIDE repo, the issue ZuluIDE/ZuluIDE-firmware#179
Shows Alcohol 120% reporting different LBA offsets than the bin/cue
it mounts from the ZuluIDE. That particular bin/cue had both PREGAP
and INDEX 0 directives. The PREGAP offset wasn't carrying over the LBA
offset to the next tracks.

Using an accumulator for PREGAP offset and adding it to data_start
and track_start fixes the issue. And hopefully subtracting it from
the file offset will fix the issue. The reporting side works in
Alcohol 120%, have not tested if the data/audio side works yet.
Propagates the pregap offset for correct LBA locations defined as MSF
values in the CUE file.
This fixes tests
 - Test TRACK 03 (audio with index 0)
 - Test TRACK 11 (audio from wav)
@aperezbios aperezbios merged commit 6ceefd8 into main Feb 25, 2025
1 check passed
@aperezbios aperezbios deleted the fix/cd-audio-offset branch February 25, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants