1
0
Fork 0
forked from len0rd/rockbox

FS#13539: Resync mikmod plugin with upstream

Brings it up to libmikmod 3.3.12, relased 2024-12-31

Also fix a segfault that only happened on simulators when using
non-default samplerates.

Change-Id: I2ade2d72a00edab5395328fe76a88a88516aac72
This commit is contained in:
Solomon Peachy 2025-01-03 08:34:47 -05:00
parent 08c32cee7c
commit af7ed73f31
29 changed files with 1860 additions and 706 deletions

View file

@ -100,6 +100,27 @@ const UWORD unioperands[UNI_LAST] = {
0, /* UNI_MEDEFFECTF2 */
0, /* UNI_MEDEFFECTF3 */
2, /* UNI_OKTARP */
0, /* not used */
1, /* UNI_S3MEFFECTH */
1, /* UNI_ITEFFECTH_OLD */
1, /* UNI_ITEFFECTU_OLD */
1, /* UNI_GDMEFFECT4 */
1, /* UNI_GDMEFFECT7 */
1, /* UNI_GDMEFFECT14 */
2, /* UNI_MEDEFFECT_VIB */
0, /* UNI_MEDEFFECT_FD */
1, /* UNI_MEDEFFECT_16 */
1, /* UNI_MEDEFFECT_18 */
1, /* UNI_MEDEFFECT_1E */
1, /* UNI_MEDEFFECT_1F */
1, /* UNI_FAREFFECT1 */
1, /* UNI_FAREFFECT2 */
1, /* UNI_FAREFFECT3 */
1, /* UNI_FAREFFECT4 */
1, /* UNI_FAREFFECT6 */
1, /* UNI_FAREFFECTD */
1, /* UNI_FAREFFECTE */
1, /* UNI_FAREFFECTF */
};
/* Sparse description of the internal module format
@ -262,7 +283,7 @@ void UniNewline(void)
unibuf[lastp]+=0x20;
unipc = unitt+1;
} else {
if (UniExpand(unitt-unipc)) {
if (UniExpand(len)) {
/* current and previous row aren't equal... update the pointers */
unibuf[unitt] = len;
lastp = unitt;