shouldPlay handles null just fine.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1000 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -251,7 +251,7 @@ public class OpenALSoundPlayer extends SoundPlayer
|
|||||||
public Frob loop (SoundType type, String pkgPath, String key, final float gain,
|
public Frob loop (SoundType type, String pkgPath, String key, final float gain,
|
||||||
final float[] pos)
|
final float[] pos)
|
||||||
{
|
{
|
||||||
if (type != null && !shouldPlay(type)) {
|
if (!shouldPlay(type)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +302,7 @@ public class OpenALSoundPlayer extends SoundPlayer
|
|||||||
public boolean play (SoundType type, String pkgPath, String key, final float gain,
|
public boolean play (SoundType type, String pkgPath, String key, final float gain,
|
||||||
final float[] pos)
|
final float[] pos)
|
||||||
{
|
{
|
||||||
if (type != null && !shouldPlay(type)) {
|
if (!shouldPlay(type)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user