[Scummvm-cvs-logs] CVS: scummvm/sound mididrv.cpp,1.30,1.31
Jamieson Christian
jamieson630 at users.sourceforge.net
Fri Nov 29 17:16:07 CET 2002
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv10844/scummvm/sound
Modified Files:
mididrv.cpp
Log Message:
Fixed pitch bend AGAIN.
(Broke it in the new MidiChannel_MPU401.)
Index: mididrv.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mididrv.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- mididrv.cpp 27 Nov 2002 15:16:06 -0000 1.30
+++ mididrv.cpp 30 Nov 2002 01:15:48 -0000 1.31
@@ -72,7 +72,7 @@
void modulationWheel (byte value) { controlChange (1, value); }
void volume (byte value) { controlChange (7, value); }
void panPosition (byte value) { controlChange (10, value); }
- void pitchBendFactor (byte value) { controlChange (16, value); }
+ void pitchBendFactor (byte value);
void detune (byte value) { controlChange (17, value); }
void priority (byte value) { controlChange (18, value); }
void sustain (bool value) { controlChange (64, value ? 1 : 0); }
@@ -119,6 +119,7 @@
void MidiChannel_MPU401::programChange (byte program) { _owner->send(program << 8 | 0xC0 | _channel); }
void MidiChannel_MPU401::pitchBend (int16 bend) { _owner->send((((bend + 0x2000) >> 7) & 0x7F) << 16 | ((bend + 0x2000) & 0x7F) << 8 | 0xE0 | _channel); }
void MidiChannel_MPU401::controlChange (byte control, byte value) { _owner->send(value << 16 | control << 8 | 0xB0 | _channel); }
+void MidiChannel_MPU401::pitchBendFactor (byte value) { _owner->setPitchBendRange (_channel, value); }
void MidiChannel_MPU401::sysEx_customInstrument (uint32 type, byte *instr) { _owner->sysEx_customInstrument (_channel, type, instr); }
More information about the Scummvm-git-logs
mailing list