diff options
author | Max Horn | 2003-09-27 22:27:12 +0000 |
---|---|---|
committer | Max Horn | 2003-09-27 22:27:12 +0000 |
commit | ca95c17e64255db3c52055a14bd8e26931f987eb (patch) | |
tree | f5ac35eaa00e69785bd18a3f48df2ec1225f6298 /scumm/player_mod.cpp | |
parent | f9e025d13c96c4556e9c415161be51ad5379854c (diff) | |
download | scummvm-rg350-ca95c17e64255db3c52055a14bd8e26931f987eb.tar.gz scummvm-rg350-ca95c17e64255db3c52055a14bd8e26931f987eb.tar.bz2 scummvm-rg350-ca95c17e64255db3c52055a14bd8e26931f987eb.zip |
merged in some more changes/improvements by _Q; cleanup
svn-id: r10444
Diffstat (limited to 'scumm/player_mod.cpp')
-rw-r--r-- | scumm/player_mod.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/player_mod.cpp b/scumm/player_mod.cpp index e3ce42a3df..c541ab19d1 100644 --- a/scumm/player_mod.cpp +++ b/scumm/player_mod.cpp @@ -56,7 +56,7 @@ Player_MOD::~Player_MOD() { for (int i = 0; i < MOD_MAXCHANS; i++) { if (!_channels[i].id) continue; - delete _channels[i].ptr; + free(_channels[i].ptr); delete _channels[i].converter; delete _channels[i].input; } @@ -77,7 +77,7 @@ void Player_MOD::clearUpdateProc() { _mixamt = 0; } -void Player_MOD::startChannel (int id, char *data, int size, int rate, uint8 vol, int loopStart, int loopEnd, int8 pan) { +void Player_MOD::startChannel (int id, void *data, int size, int rate, uint8 vol, int loopStart, int loopEnd, int8 pan) { int i; if (id == 0) error("player_mod - attempted to start channel id 0"); @@ -93,7 +93,7 @@ void Player_MOD::startChannel (int id, char *data, int size, int rate, uint8 vol _channels[i].id = id; _channels[i].vol = vol; _channels[i].pan = pan; - _channels[i].ptr = (byte*) data; + _channels[i].ptr = 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); |