Skip to content

Atrac3: Allow sending 0xFFFFFFFF as data size (Death JR music looping)#21490

Merged
hrydgard merged 1 commit intomasterfrom
death-jr-music-fix
Mar 26, 2026
Merged

Atrac3: Allow sending 0xFFFFFFFF as data size (Death JR music looping)#21490
hrydgard merged 1 commit intomasterfrom
death-jr-music-fix

Conversation

@hrydgard
Copy link
Owner

@hrydgard hrydgard commented Mar 26, 2026

For whatever reason, Death JR does an unnecessary call to sceAtracSetData with some not great parameter values on atrac loop. Since the Atrac3 refactoring, this no longer worked. This fixes it by treating -1 as a large value instead of a small...

Not 100% sure this is correct though, but doesn't seem too risky. Will add to hw tests later.

Fixes #21489

@hrydgard hrydgard added this to the v1.20.4 milestone Mar 26, 2026
@hrydgard hrydgard added the Audio label Mar 26, 2026
@hrydgard hrydgard merged commit 12d3d3e into master Mar 26, 2026
22 checks passed
@hrydgard hrydgard deleted the death-jr-music-fix branch March 26, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Death JR: Background music doesn't loop properly

1 participant