Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong audio track offsets and playback on a mixed CD. #179

Open
dzlia opened this issue Feb 20, 2025 · 1 comment
Open

Wrong audio track offsets and playback on a mixed CD. #179

dzlia opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@dzlia
Copy link

dzlia commented Feb 20, 2025

There is an image of mixed data+audio content. And I noticed, then it is used in ZuluIDE, that beginning of the next track is moved to the end of the previous track, so the border between tracks is shifted to ~4 seconds. When I mount the same image to an Alcohol 120% virtual drive, everything's fine.

In addition, when I play the track (track 5 in my case) using Win 98 CD Audio player, in the end of the track it quickly shifts from track 6 to track 9, while the track 6 is still played after the track 5. If needed, I can record a video of how this works in dynamics.
In addition, the overall duration of the whole CD and audio tracks is reported incorrectly.

Here is an image (this page is in russian, use translator to understand how to download the image, since it generates a dynamic download link): https://www.old-games.ru/game/download/get.php?fileid=26015&modal=1

Here are screenshots of the difference between how an image mounted in Alcohol 120% and ZuluIDE is reported. Note that even it is exact copy of BIN/CUE mounted by two emulators, different volume is reported.

Alcohol 120%
Image

ZuluIDE
Image

@dzlia
Copy link
Author

dzlia commented Feb 20, 2025

From checking CUE, I have a guess that CUE with pre-gaps is not yet supported. This CUE was generated by ImgBurn, so it should be a valid one.

@aperezbios aperezbios added the bug Something isn't working label Feb 21, 2025
morio added a commit to rabbitholecomputing/CUEParser that referenced this issue Feb 22, 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. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants