From c0228cfe70d3ece58323cc92f57a0a5786c3294c Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Sat, 20 Jun 2009 13:49:02 +0000 Subject: Some more cleanups, fixed patterncommand 0xFE not working, added an option "-hack-patternstop" to the commandline tool svn-id: r41710 --- sound/mods/tfmx.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sound/mods/tfmx.h') diff --git a/sound/mods/tfmx.h b/sound/mods/tfmx.h index 3ca1d8a4ba..195b582c69 100644 --- a/sound/mods/tfmx.h +++ b/sound/mods/tfmx.h @@ -202,8 +202,6 @@ public: } _trackCtx; struct PlayerContext { - bool enabled; -// bool end; int8 song; //!< >= 0 if Song is running (means process Patterns) uint16 patternCount; @@ -223,7 +221,7 @@ public: bool stopWithLastPattern; //!< hack to automatically stop the whole player if no Pattern is running } _playerCtx; - void initMacroProgramm(ChannelContext &channel) { + static void initMacroProgramm(ChannelContext &channel) { channel.macroStep = 0; channel.macroWait = 0; channel.macroRun = true; @@ -231,18 +229,18 @@ public: channel.dmaIntCount = 0; } - void clearEffects(ChannelContext &channel) { + static void clearEffects(ChannelContext &channel) { channel.envSkip = 0; channel.vibLength = 0; channel.portaDelta = 0; } - void clearMacroProgramm(ChannelContext &channel) { + static void clearMacroProgramm(ChannelContext &channel) { channel.macroRun = false; channel.dmaIntCount = 0; } - void unlockMacroChannel(ChannelContext &channel) { + static void unlockMacroChannel(ChannelContext &channel) { channel.customMacro = 0; channel.customMacroPrio = false; channel.sfxLocked = false; -- cgit v1.2.3