From 1b1fae6494fb64840f83c509d35e9062abecce13 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 26 Feb 2017 14:23:36 +0100 Subject: SCI: Clean up unnecessary casts --- engines/sci/sound/drivers/midi.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/sci/sound') 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(&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(&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(&f), 256); - sendMt32SysEx(0x50200, static_cast(&f), 128); + sendMt32SysEx(0x50000, &f, 256); + sendMt32SysEx(0x50200, &f, 128); setReverb(reverb); // Send the after-SysEx text f.seek(0x3d); - sendMt32SysEx(0x200000, static_cast(&f), 20); + sendMt32SysEx(0x200000, &f, 20); } else { byte reverbSysEx[13]; // This old driver should have a full reverb SysEx -- cgit v1.2.3