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

Fix APE encoding under 32-bit #302

Merged

Conversation

c72578
Copy link
Collaborator

@c72578 c72578 commented Nov 2, 2023

APE files are not encoded correctly using CUETools.Codecs.MACLib,
when CUETools is run under 32-bit. This is a regression since the
update of MAC_SDK to 9.04 (#246). No problem under 64-bit.
Affected CUETools versions under 32-bit: v2.2.4, v2.2.3

  • MACLibDll.cs, c_APECompress_Finish():
    Use long, which corresponds to APE::int64

APE files are not encoded correctly using CUETools.Codecs.MACLib,
when CUETools is run under 32-bit. This is a regression since the
update of MAC_SDK to 9.04 (gchudov#246). No problem under 64-bit.
Affected CUETools versions under 32-bit: v2.2.4, v2.2.3

- MACLibDll.cs, c_APECompress_Finish():
  Use `long`, which corresponds to `APE::int64`
@c72578
Copy link
Collaborator Author

c72578 commented Nov 2, 2023

Here is a build from GitHub Actions, which allows encoding to APE also under 32-bit:
CUETools_2.2.4_2023-11-02_git_287905e_Fix_APE_encoding_under_32-bit.zip
SHA256: 2d20b13982751a54d01efbe9c0db921838aaf8c9316f31122146a972b0bc372d

The following zip file contains only the fixed CUETools.Codecs.MACLib.dll:
CUETools_2.2.4_fixed_MACLib_dll_for_32-bit.zip
SHA256: df0f0ad704b9f1288a6aea728c2e8af1bb82cab98c1e7b84e06de233d89494d9
This dll can be used in released CUETools 2.2.4 (MAC_SDK 9.04) as a fix under 32-bit.

@c72578 c72578 merged commit 287905e into gchudov:master Nov 3, 2023
1 check passed
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.

1 participant