[Scummvm-cvs-logs] CVS: scummvm/sound mididrv.cpp,1.12,1.13
Jamieson Christian
jamieson630 at users.sourceforge.net
Mon Oct 14 09:20:06 CEST 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.10,1.11 sdl-common.h,1.5,1.6 sdl.cpp,1.9,1.10 sdl_gl.cpp,1.6,1.7
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,1.58,1.59
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv16603/scummvm/sound
Modified Files:
mididrv.cpp
Log Message:
Removed hard-coded pitch bend setup, now being handled on-the-fly in imuse.cpp
Index: mididrv.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mididrv.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- mididrv.cpp 12 Oct 2002 00:26:24 -0000 1.12
+++ mididrv.cpp 14 Oct 2002 16:19:19 -0000 1.13
@@ -109,19 +109,6 @@
MMRESULT res = midiOutOpen((HMIDIOUT *) & _mo, MIDI_MAPPER, NULL, NULL, 0);
if (res != MMSYSERR_NOERROR)
check_error(res);
-
- // Send initial pitch bend sensitivity values for +/- 12 semitones.
- // For information on control change registered parameters,
- // which includes the Pitch Bend sensitivity settings,
- // visit http://www.midi.org/about-midi/table3.htm,
- // Table 3a.
- int chan;
- for (chan = 0; chan < 16; ++chan) {
- send(( 0 << 16) | (101 << 8) | (0xB0 | chan));
- send(( 0 << 16) | (100 << 8) | (0xB0 | chan));
- send((12 << 16) | ( 6 << 8) | (0xB0 | chan));
- send(( 0 << 16) | ( 38 << 8) | (0xB0 | chan));
- } // next for
} else {
/* streaming mode */
MIDIPROPTIMEDIV mptd;
@@ -816,7 +803,7 @@
case 0xE0:{ // Pitch bend
// QuickTime specifies pitchbend in semitones, using 8.8 fixed point values;
- // but iMuse sends us the pitch bend data as 0-32768. which has to be mapped
+ // but iMuse sends us the pitch bend data as 0-16383. which has to be mapped
// to +/- 12 semitones. Based on this, we first center the input data, then
// multiply it by a factor. If all was right, the factor would be 3/8, but for
// mysterious reasons the actual factor we have to use is more like 1/32 or 3/64.
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.10,1.11 sdl-common.h,1.5,1.6 sdl.cpp,1.9,1.10 sdl_gl.cpp,1.6,1.7
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,1.58,1.59
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list