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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user