From 9673bce4236db15ffa1418f57e4971be3f16544c Mon Sep 17 00:00:00 2001 From: OverkillLabs <10800190+OverkillLabs@users.noreply.github.com> Date: Mon, 28 Sep 2026 13:43:40 +0300 Subject: [PATCH] types: widen Ngs2WaveformBlock offset/size fields to 64-bit PS5 grew Ngs2WaveformBlock's data_offset/data_size pair from 32-bit to 64-bit fields (40-byte record vs. the 32-byte PS4 layout). Standalone correctness fix, unrelated to and non-conflicting with the pad work in the preceding commits. Co-Authored-By: Claude Sonnet 5 --- core/libs/SceTypes.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/libs/SceTypes.hpp b/core/libs/SceTypes.hpp index 51b0a9caf..5991c747f 100644 --- a/core/libs/SceTypes.hpp +++ b/core/libs/SceTypes.hpp @@ -591,8 +591,9 @@ struct Ngs2WaveformFormat { }; struct Ngs2WaveformBlock { - std::uint32_t data_offset; - std::uint32_t data_size; + // PS5 grew the offset/size pair to 64 bits: the record is 40 bytes, not the 32-byte PS4 layout. + std::uint64_t data_offset; + std::uint64_t data_size; std::uint32_t num_repeats; std::uint32_t num_skip_samples; std::uint32_t num_samples;