Looped sounds were not checking to see if that sound type was enabled

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3980 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mark Johnson
2006-03-25 20:49:22 +00:00
parent c00f76f141
commit 5690a38096
@@ -338,6 +338,9 @@ public class SoundManager
*/
public Frob loop (SoundType type, String pkgPath, String key)
{
if (!isEnabled(type)) {
return null;
}
SoundKey skey = new SoundKey(LOOP, pkgPath, key, 0, _clipVol, 0f);
addToPlayQueue(skey);
return skey; // it is a frob