Use the pan constants in a few more places to improve readability.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3982 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-03-25 22:46:00 +00:00
parent 8298025a11
commit 6c3bc1cb78
@@ -282,7 +282,7 @@ public class SoundManager
*/ */
public void play (SoundType type, String pkgPath, String key) public void play (SoundType type, String pkgPath, String key)
{ {
play(type, pkgPath, key, 0, 0f); play(type, pkgPath, key, 0, PAN_CENTER);
} }
/** /**
@@ -303,7 +303,7 @@ public class SoundManager
*/ */
public void play (SoundType type, String pkgPath, String key, int delay) public void play (SoundType type, String pkgPath, String key, int delay)
{ {
play(type, pkgPath, key, delay, 0f); play(type, pkgPath, key, delay, PAN_CENTER);
} }
/** /**
@@ -518,7 +518,7 @@ public class SoundManager
new DataLine.Info(SourceDataLine.class, format)); new DataLine.Info(SourceDataLine.class, format));
line.open(format, LINEBUF_SIZE); line.open(format, LINEBUF_SIZE);
float setVolume = 1; float setVolume = 1;
float setPan = 0f; float setPan = PAN_CENTER;
line.start(); line.start();
_soundSeemsToWork = true; _soundSeemsToWork = true;
@@ -933,7 +933,7 @@ public class SoundManager
// documentation inherited from interface Frob // documentation inherited from interface Frob
public void setPan (float newPan) public void setPan (float newPan)
{ {
pan = Math.max(-1f, Math.min(1f, newPan)); pan = Math.max(PAN_LEFT, Math.min(PAN_RIGHT, newPan));
} }
// documentation inherited from interface Frob // documentation inherited from interface Frob