From b3db399f7ddcc43fde5ef76f21626b4e0748e82e Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 2 Jul 2013 21:18:15 -0700 Subject: j3dcore: annotate prioritizedSounds list in SoundScheduler Signed-off-by: Harvey Harrison --- .../share/javax/media/j3d/SoundScheduler.java | 30 ++++++++++------------ 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/src/classes/share/javax/media/j3d/SoundScheduler.java b/src/classes/share/javax/media/j3d/SoundScheduler.java index 386e61b..8820cf8 100644 --- a/src/classes/share/javax/media/j3d/SoundScheduler.java +++ b/src/classes/share/javax/media/j3d/SoundScheduler.java @@ -120,7 +120,7 @@ class SoundScheduler extends J3dStructure { */ // XXXX: (Enhancement) should have a seperate list for // background sound and a list for positional sounds - ArrayList prioritizedSounds = new ArrayList(); + ArrayList prioritizedSounds = new ArrayList(); /** * Current number of scene graph sound nodes in the universe @@ -468,8 +468,7 @@ class SoundScheduler extends J3dStructure { // find sound in list and remove it int arrSize = prioritizedSounds.size(); for (int index=0; index=0; i--) { - soundAtom = ((SoundSchedulerAtom)prioritizedSounds.get(i)); + soundAtom = prioritizedSounds.get(i); if (soundAtom.sound.sgSound == soundRetained) { // ignore soundRetained.release // flag which is not implement @@ -1132,7 +1131,7 @@ class SoundScheduler extends J3dStructure { int jsounds = (prioritizedSounds.size() - 1); float soundPriority = sound.priority; for (j=jsounds; j>=0; j--) { - jAtom = (SoundSchedulerAtom)prioritizedSounds.get(j); + jAtom = prioritizedSounds.get(j); jSound = jAtom.sound; if (debugFlag) debugPrint(": priority of sound " + jSound.sgSound + @@ -1745,7 +1744,7 @@ class SoundScheduler extends J3dStructure { // Those sounds remaining are inserted into a prioritized list for (int i=0; i