added versions of lock() and unlock() that take a list of sound keys to
operate on. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2023 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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;
|
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.
|
* Play the specified sound of as the specified type of sound.
|
||||||
* Note that a sound need not be locked prior to playing.
|
* Note that a sound need not be locked prior to playing.
|
||||||
|
|||||||
Reference in New Issue
Block a user