aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-02-26 14:23:36 +0100
committerWillem Jan Palenstijn2017-02-26 14:23:36 +0100
commit1b1fae6494fb64840f83c509d35e9062abecce13 (patch)
treec421d133f9d0cb040da38325131444cf29b205bd /engines/sci/sound
parentc81a61eefe1960fad52ef6d3328447f6452c7568 (diff)
downloadscummvm-rg350-1b1fae6494fb64840f83c509d35e9062abecce13.tar.gz
scummvm-rg350-1b1fae6494fb64840f83c509d35e9062abecce13.tar.bz2
scummvm-rg350-1b1fae6494fb64840f83c509d35e9062abecce13.zip
SCI: Clean up unnecessary casts
Diffstat (limited to 'engines/sci/sound')
-rw-r--r--engines/sci/sound/drivers/midi.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index badbe663ca..7b2b102284 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -656,13 +656,13 @@ void MidiPlayer_Midi::readMt32DrvData() {
f.seek(-2, SEEK_CUR);
// Send before-SysEx text
- sendMt32SysEx(0x200000, static_cast<Common::SeekableReadStream *>(&f), 20);
+ sendMt32SysEx(0x200000, &f, 20);
if (size != 2271) {
// Send after-SysEx text (SSCI sends this before every song).
// There aren't any SysEx calls in old drivers, so this can
// be sent right after the before-SysEx text.
- sendMt32SysEx(0x200000, static_cast<Common::SeekableReadStream *>(&f), 20);
+ sendMt32SysEx(0x200000, &f, 20);
} else {
// Skip the after-SysEx text in the newer patch version, we'll send
// it after the SysEx messages are sent.
@@ -696,14 +696,14 @@ void MidiPlayer_Midi::readMt32DrvData() {
f.skip(2235); // skip driver code
// Patches 1-48
- sendMt32SysEx(0x50000, static_cast<Common::SeekableReadStream *>(&f), 256);
- sendMt32SysEx(0x50200, static_cast<Common::SeekableReadStream *>(&f), 128);
+ sendMt32SysEx(0x50000, &f, 256);
+ sendMt32SysEx(0x50200, &f, 128);
setReverb(reverb);
// Send the after-SysEx text
f.seek(0x3d);
- sendMt32SysEx(0x200000, static_cast<Common::SeekableReadStream *>(&f), 20);
+ sendMt32SysEx(0x200000, &f, 20);
} else {
byte reverbSysEx[13];
// This old driver should have a full reverb SysEx