changeset in /hg/icedtea: Fix SoftChannel controlChange for leas...
Mark Wielaard
mark at klomp.org
Thu May 29 14:13:29 PDT 2008
changeset 8810f9b6e357 in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=8810f9b6e357
description:
Fix SoftChannel controlChange for least significant control values.
2008-05-01 Mark Wielaard <mwielaard at redhat.com>
* overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/
SoftChannel.java (controlChange): Reset least significant
controller if necessary.
diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
ChangeLog | 6 ++++++
overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java | 8 +++++++-
diffs (31 lines):
diff -r 57bbbc3db355 -r 8810f9b6e357 ChangeLog
--- a/ChangeLog Thu May 01 10:57:58 2008 +0200
+++ b/ChangeLog Fri May 02 01:30:56 2008 +0200
@@ -1,3 +1,9 @@ 2008-05-01 Mark Wielaard <mwielaard at re
+2008-05-01 Mark Wielaard <mwielaard at redhat.com>
+
+ * overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/
+ SoftChannel.java (controlChange): Reset least significant
+ controller if necessary.
+
2008-05-01 Mark Wielaard <mwielaard at redhat.com>
* overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/
diff -r 57bbbc3db355 -r 8810f9b6e357 overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
--- a/overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java Thu May 01 10:57:58 2008 +0200
+++ b/overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java Fri May 02 01:30:56 2008 +0200
@@ -1170,7 +1170,13 @@ public class SoftChannel implements Midi
return;
}
- this.controller[controller] = value;
+ // Keep track of values (capped to 7 bit).
+ // Reset least significant (32 through 63)
+ // controller value when most significant
+ // (0 through 31) is set.
+ this.controller[controller] = value & 127;
+ if (controller < 32)
+ this.controller[controller + 32] = 0;
for (int i = 0; i < voices.length; i++)
if (voices[i].active)
More information about the distro-pkg-dev
mailing list