Added summarizeState().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2704 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SoundManager.java,v 1.63 2003/06/07 00:41:25 ray Exp $
|
||||
// $Id: SoundManager.java,v 1.64 2003/07/12 03:59:54 mdb Exp $
|
||||
|
||||
package com.threerings.media.sound;
|
||||
|
||||
@@ -208,6 +208,26 @@ public class SoundManager
|
||||
return (_player == Thread.currentThread());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string summarizing our volume settings and disabled sound
|
||||
* types.
|
||||
*/
|
||||
public String summarizeState ()
|
||||
{
|
||||
StringBuffer buf = new StringBuffer();
|
||||
buf.append("musicVol=").append(_musicVol);
|
||||
buf.append(", clipVol=").append(_clipVol);
|
||||
buf.append(", disabled=[");
|
||||
int ii = 0;
|
||||
for (Iterator iter = _disabledTypes.iterator(); iter.hasNext(); ) {
|
||||
if (ii++ > 0) {
|
||||
buf.append(", ");
|
||||
}
|
||||
buf.append(iter.next());
|
||||
}
|
||||
return buf.append("]").toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the specified soundtype enabled?
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user