Skip to content

Conversation

@AliceLR
Copy link
Contributor

@AliceLR AliceLR commented Nov 18, 2025

Fixes xmp handling of sample default panning values of -1 (no sample default panning). This was technically broken prior to libxmp/libxmp#904 for Impulse Tracker modules, but this patch made it affect most other formats too.

(This may set off some string.h warnings, particularly for macOS, which is petty about strcpy even when used correctly—we need better CI here.)

To verify this works, you can play libxmp/test-dev/data/gal4_smpl_setpan.j2b and press the info keys i (Instruments and Samples) and I (Instruments). The first sample should be left (P00), the second center (P80), the third right (Pff), and the last has no default panning (---).

@AliceLR AliceLR added the bug label Nov 18, 2025
@AliceLR AliceLR requested a review from sezero November 18, 2025 02:14
@AliceLR AliceLR added this to the 4.2.1 milestone Nov 18, 2025
@sezero sezero merged commit 237c6fd into libxmp:master Nov 18, 2025
1 check passed
@AliceLR AliceLR deleted the fix-inst-no-setpan branch November 18, 2025 04:16
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.

2 participants