head 1.3; access; symbols pkgsrc-2018Q3:1.2.0.54 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.52 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.50 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.48 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.46 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.42 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.40 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.38 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.36 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.34 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.32 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.30 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.28 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.26 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.24 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.22 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.20 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.18 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.16 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.14 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.12 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.8 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.4 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.2 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.1.0.6 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.4 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.2 pkgsrc-2011Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2018.12.11.09.50.44; author wiz; state dead; branches; next 1.2; commitid 5O36TuXofh5yFm3B; 1.2 date 2012.05.04.16.00.01; author joerg; state Exp; branches; next 1.1; 1.1 date 2011.09.12.05.08.53; author dholland; state Exp; branches; next ; desc @@ 1.3 log @adplug: update to 2.3.1. Changes for version 2.3.1: -------------------------- - Fixed unconditional inclusion of "sys/io.h" on Linux - Autotools improvement - Non-recursive Automake, improved parallelizability - Compatibility fixes for FreeBSD's pmake and OpenBSD's make - Out-of-source building Changes for version 2.3: ------------------------- - Bug fixes: - CMF: Fix uninitialised variable use (thanks binarymaster) - CMF: Handle invalid offsets without crashing - ROL: Prevent access beyond end of vector - MSC: Fix use of uninitialised variable - HSC: Handle out of range patterns more gracefully - MID: Fix for issue #2 - out of range array read - LDS: Use the tempo stored inside the Loudness-File instead of simply returning 70Hz - RIX: Fix several replay bugs (thanks to Palxex) - RIX: Big-endian fix by Wei Mingzhi - XAD: Tempo fix - Various other out of bounds array fixes, timing fixes, etc. - New formats: - BMF: Easy AdLib 1.0 - CMF: SoundFX Macs Opera - GOT: God of Thunder - HSQ/SQX/SDB/AGD/HA2: Herbulot AdLib System (HERAD) - MUS/IMS/MDI: AdLib Visual Composer ROL derivatives - SOP: sopepos' Note Player - VGM: Video Game Music - Allow compilation on platforms that don't support real OPL hardware access - Add support for compiling on Appveyor and publishing a NuGet package - Add Visual Studio 2015 projects - Add support for Travis CI builds - Add new CRC16 and CRC32 tests - Addition of WoodyOPL from DOSBox SVN (thanks to NY00123) - Addition of NukedOPL (thanks to loki666 and nukeykt) - Move from SourceForge to GitHub - DRO player refactored (thanks to Laurence Myers and William Yates) - Add (mono) OPL3 support to the surround/harmonic-effect OPL - Fix occasional random noise in right channel when using surround OPL and Satoh synth - Add display for ROL comment and instrument names - Improve support for different Westwood ADL format versions - Improve CMF transpose support (per-channel now) - Autotools build environment updated Changes for version 2.2.1: -------------------------- - Bug fixes: - CMF: Fix crash on v1.0 files - DRO: Correct playback of early v0.1 files Changes for version 2.2: ------------------------ - New format support: - JBM: JBM Adlib Music Format - CMF: New player (more accurate) for Creative Music Format - DRO: DOSBox Raw OPL v2.0 support - Fixed current subsong rewind in D00 player. - Added test case for ADL file format. - Fixed replay bug in DRO player (thanks to Adam Nielsen). - New surround/harmonic synth effect (sounds really nice!) @ text @$NetBSD: patch-src_fmopl_c,v 1.2 2012/05/04 16:00:01 joerg Exp $ Redefine INLINE to cover all inline functions for compilers with C99 semantic. --- src/fmopl.c~ 2006-05-13 05:36:42.000000000 +0000 +++ src/fmopl.c @@@@ -31,7 +31,7 @@@@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define INLINE __inline +#define INLINE static __inline #define HAS_YM3812 1 #include @ 1.2 log @Fix build with clang. @ text @d1 1 a1 1 $NetBSD: patch-src_fmopl_c,v 1.1 2011/09/12 05:08:53 dholland Exp $ @ 1.1 log @Patch up some inline issues for clang. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 2 - sprinkle static on inline functions not used outside this file, to fix clang build. d7 3 a9 2 @@@@ -388,7 +388,7 @@@@ INLINE void CALC_FCSLOT(OPL_CH *CH,OPL_S } d11 3 a13 16 /* set multi,am,vib,EG-TYP,KSR,mul */ -INLINE void set_mul(FM_OPL *OPL,int slot,int v) +static INLINE void set_mul(FM_OPL *OPL,int slot,int v) { OPL_CH *CH = &OPL->P_CH[slot/2]; OPL_SLOT *SLOT = &CH->SLOT[slot&1]; @@@@ -452,7 +452,7 @@@@ INLINE void set_sl_rr(FM_OPL *OPL,int sl /* operator output calcrator */ #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][env] /* ---------- calcrate one of channel ---------- */ -INLINE void OPL_CALC_CH( OPL_CH *CH ) +static INLINE void OPL_CALC_CH( OPL_CH *CH ) { UINT32 env_out; OPL_SLOT *SLOT; @@@@ -497,7 +497,7 @@@@ INLINE void OPL_CALC_CH( OPL_CH *CH ) d15 1 a15 7 /* ---------- calcrate rythm block ---------- */ #define WHITE_NOISE_db 6.0 -INLINE void OPL_CALC_RH( OPL_CH *CH ) +static INLINE void OPL_CALC_RH( OPL_CH *CH ) { UINT32 env_tam,env_sd,env_top,env_hh; int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); @