From 100d86ee4d3bc412ae61e890ca45b0e2a3d57895 Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Fri, 10 Jul 2009 16:01:40 +0000 Subject: made all structures that are only written when loading song/samples const fixed volume-handling a bit, still not correct svn-id: r42343 --- sound/mods/maxtrax.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sound/mods/maxtrax.h') diff --git a/sound/mods/maxtrax.h b/sound/mods/maxtrax.h index 1edfa5945b..cdfb614580 100644 --- a/sound/mods/maxtrax.h +++ b/sound/mods/maxtrax.h @@ -68,7 +68,7 @@ public: bool musicLoop; int scoreIndex; - Event *nextEvent; + const Event *nextEvent; int32 nextEventTime; bool addedNote; @@ -82,8 +82,8 @@ public: uint16 volume; }; - struct Patch { - Envelope *attackPtr; + const struct Patch { + const Envelope *attackPtr; //Envelope *releasePtr; uint16 attackLen; uint16 releaseLen; @@ -92,7 +92,7 @@ public: uint16 volume; // this was the SampleData struct in the assembler source - int8 *samplePtr; + const int8 *samplePtr; uint32 sampleTotalLen; uint32 sampleAttackLen; uint16 sampleOctaves; @@ -106,14 +106,14 @@ public: }; struct Score { - Event *events; + const Event *events; uint32 numEvents; } *_scores; int _numScores; struct ChannelContext { - Patch *patch; + const Patch *patch; uint16 regParamNumber; uint16 modulation; @@ -149,8 +149,8 @@ public: struct VoiceContext { ChannelContext *channel; - Patch *patch; - Envelope *envelope; + const Patch *patch; + const Envelope *envelope; uint32 uinqueId; uint32 lastTicks; uint32 ticksLeft; -- cgit v1.2.3