diff --git a/src/java/com/threerings/media/sound/SoundManager.java b/src/java/com/threerings/media/sound/SoundManager.java index 839b34301..3112c2b90 100644 --- a/src/java/com/threerings/media/sound/SoundManager.java +++ b/src/java/com/threerings/media/sound/SoundManager.java @@ -1,5 +1,5 @@ // -// $Id: SoundManager.java,v 1.36 2002/12/04 02:14:12 ray Exp $ +// $Id: SoundManager.java,v 1.37 2002/12/04 21:42:34 ray Exp $ package com.threerings.media; @@ -275,6 +275,26 @@ public class SoundManager } } + /** + * Batch lock a list of sounds. + */ + public void lock (String pkgPath, String[] keys) + { + for (int ii=0; ii < keys.length; ii++) { + lock(pkgPath, keys[ii]); + } + } + + /** + * Batch unlock a list of sounds. + */ + public void unlock (String pkgPath, String[] keys) + { + for (int ii=0; ii < keys.length; ii++) { + unlock(pkgPath, keys[ii]); + } + } + /** * Play the specified sound of as the specified type of sound. * Note that a sound need not be locked prior to playing.