From b4e70422a3455e327433a7471c929ef100ef3b10 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 8 Aug 2020 21:56:15 -0400 Subject: mikmod: Upgrade mikmod core from v3.2.0 to v3.3.11 * Get rid of the non-functional GT2 loader * Add the UMX loader * Add HQ mixer routines (and make it configurable) * Allow samplerate to be configured at run/playtime * Support >64KHz mixing/playback * Correctly restore non-boost status (The diff to upstream is much smaller now too!) Change-Id: Iaa4ac901ba9cd4123bb225656976e78271353a72 --- apps/plugins/mikmod/munitrk.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'apps/plugins/mikmod/munitrk.c') diff --git a/apps/plugins/mikmod/munitrk.c b/apps/plugins/mikmod/munitrk.c index f0a8f58af7..72e7de4e7e 100644 --- a/apps/plugins/mikmod/munitrk.c +++ b/apps/plugins/mikmod/munitrk.c @@ -6,12 +6,12 @@ it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. - + You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -20,7 +20,7 @@ /*============================================================================== - $Id: munitrk.c,v 1.2 2005/03/30 19:11:46 realtech Exp $ + $Id$ All routines dealing with the manipulation of UNITRK streams @@ -37,7 +37,7 @@ /* Unibuffer chunk size */ #define BUFPAGE 128 -UWORD unioperands[UNI_LAST]={ +const UWORD unioperands[UNI_LAST] = { 0, /* not used */ 1, /* UNI_NOTE */ 1, /* UNI_INSTRUMENT */ @@ -214,7 +214,7 @@ static int UniExpand(int wanted) unibuf = newbuf; unimax+=BUFPAGE; return 1; - } else + } else return 0; } return 1; @@ -236,7 +236,7 @@ void UniWriteWord(UWORD data) } } -static int MyCmp(UBYTE* a,UBYTE* b,UWORD l) +static int MyCmp(const UBYTE* a,const UBYTE* b,UWORD l) { UWORD t; @@ -275,15 +275,15 @@ void UniNewline(void) stream. */ UBYTE* UniDup(void) { - UBYTE *d; + void *d; - if (!UniExpand(unitt-unipc)) return NULL; + if (!UniExpand(unipc-unitt)) return NULL; unibuf[unitt] = 0; - if(!(d=(UBYTE *)MikMod_malloc(unipc))) return NULL; + if(!(d=MikMod_malloc(unipc))) return NULL; memcpy(d,unibuf,unipc); - return d; + return (UBYTE *)d; } int UniInit(void) @@ -296,7 +296,7 @@ int UniInit(void) void UniCleanup(void) { - if(unibuf) MikMod_free(unibuf); + MikMod_free(unibuf); unibuf = NULL; } -- cgit v1.2.3