Uhh, probably makes sense to actually hook the volume setting up to the sound manager
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@640 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -50,6 +50,16 @@ public class OpenALSoundPlayer extends SoundPlayer
|
|||||||
return _ticker;
|
return _ticker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setClipVolume (final float vol)
|
||||||
|
{
|
||||||
|
super.setClipVolume(vol);
|
||||||
|
_ticker.postRunnable(new Runnable(){
|
||||||
|
public void run () {
|
||||||
|
_alSoundManager.setBaseGain(vol);
|
||||||
|
}});
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void lock (String pkgPath, String... keys)
|
public void lock (String pkgPath, String... keys)
|
||||||
{
|
{
|
||||||
@@ -162,6 +172,11 @@ public class OpenALSoundPlayer extends SoundPlayer
|
|||||||
*/
|
*/
|
||||||
protected class TickingQueue extends BasicRunQueue
|
protected class TickingQueue extends BasicRunQueue
|
||||||
{
|
{
|
||||||
|
public TickingQueue ()
|
||||||
|
{
|
||||||
|
super("SoundPlayerQueue");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void iterate ()
|
protected void iterate ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user