If we shouldn't play that sound type, don't loop it either.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@999 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2010-08-25 21:29:32 +00:00
parent d01236928f
commit 480d98cc5e
@@ -251,6 +251,10 @@ public class OpenALSoundPlayer extends SoundPlayer
public Frob loop (SoundType type, String pkgPath, String key, final float gain,
final float[] pos)
{
if (type != null && !shouldPlay(type)) {
return null;
}
final SoundGrabber loader = new SoundGrabber(pkgPath, key) {
@Override
protected void soundLoaded () {