aboutsummaryrefslogtreecommitdiff
path: root/sound/mods/maxtrax.h
diff options
context:
space:
mode:
authorNorbert Lange2009-07-10 16:01:40 +0000
committerNorbert Lange2009-07-10 16:01:40 +0000
commit100d86ee4d3bc412ae61e890ca45b0e2a3d57895 (patch)
tree294e82158da755dc43f7baa71849bcfd121ee8f9 /sound/mods/maxtrax.h
parent3ae850fe9c14d2feffbbad0b31df0c9f4ae0cb96 (diff)
downloadscummvm-rg350-100d86ee4d3bc412ae61e890ca45b0e2a3d57895.tar.gz
scummvm-rg350-100d86ee4d3bc412ae61e890ca45b0e2a3d57895.tar.bz2
scummvm-rg350-100d86ee4d3bc412ae61e890ca45b0e2a3d57895.zip
made all structures that are only written when loading song/samples const
fixed volume-handling a bit, still not correct svn-id: r42343
Diffstat (limited to 'sound/mods/maxtrax.h')
-rw-r--r--sound/mods/maxtrax.h16
1 files changed, 8 insertions, 8 deletions
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;