aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJamieson Christian2003-09-25 00:02:56 +0000
committerJamieson Christian2003-09-25 00:02:56 +0000
commitcbcf5d5f7d9472654d42e071c865001126522ce2 (patch)
tree44b5c2067a6e9774ce436e40467a6f9468da96a6 /scumm
parentc96c900546ba9954d0a76e50036df7d211efd486 (diff)
downloadscummvm-rg350-cbcf5d5f7d9472654d42e071c865001126522ce2.tar.gz
scummvm-rg350-cbcf5d5f7d9472654d42e071c865001126522ce2.tar.bz2
scummvm-rg350-cbcf5d5f7d9472654d42e071c865001126522ce2.zip
Can't delete a const pointer, duh
svn-id: r10400
Diffstat (limited to 'scumm')
-rw-r--r--scumm/player_mod.cpp2
-rw-r--r--scumm/player_mod.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/scumm/player_mod.cpp b/scumm/player_mod.cpp
index 8f5bdb99e9..7cf07b6d78 100644
--- a/scumm/player_mod.cpp
+++ b/scumm/player_mod.cpp
@@ -93,7 +93,7 @@ void Player_MOD::startChannel (int id, const char *data, int size, int rate, uin
_channels[i].id = id;
_channels[i].vol = vol;
_channels[i].pan = pan;
- _channels[i].ptr = (const byte*)data;
+ _channels[i].ptr = (byte*) data;
_channels[i].freq = rate;
_channels[i].input = makeLinearInputStream(SoundMixer::FLAG_AUTOFREE | (loopStart != loopEnd ? SoundMixer::FLAG_LOOP : 0), (const byte*)data, size, loopStart, loopEnd - loopStart);
_channels[i].converter = makeRateConverter(rate, _mixer->getOutputRate(), false, false);
diff --git a/scumm/player_mod.h b/scumm/player_mod.h
index 4de2e53a0f..4310d16f3e 100644
--- a/scumm/player_mod.h
+++ b/scumm/player_mod.h
@@ -60,7 +60,7 @@ private:
uint8 vol;
int8 pan;
uint16 freq;
- const byte *ptr;
+ byte *ptr;
RateConverter *converter;
AudioInputStream *input;
} _channels[MOD_MAXCHANS];