Pull that out so I can override in a subclass

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@843 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2009-08-02 19:52:33 +00:00
parent c1b7b196e8
commit 919ab1692f
@@ -65,7 +65,7 @@ public class OpenALSoundPlayer extends SoundPlayer
{ {
_loader = loader; _loader = loader;
try { try {
_alSoundManager = new MediaALSoundManager(); _alSoundManager = createSoundManager();
_group = _alSoundManager.createGroup(this, SOURCE_COUNT); _group = _alSoundManager.createGroup(this, SOURCE_COUNT);
} catch (Throwable t) { } catch (Throwable t) {
log.warning("Unable to initialize OpenAL", "cause", t); log.warning("Unable to initialize OpenAL", "cause", t);
@@ -334,6 +334,14 @@ public class OpenALSoundPlayer extends SoundPlayer
return paths; return paths;
} }
/**
* Creates our SoundManager.
*/
protected SoundManager createSoundManager ()
{
return new MediaALSoundManager();
}
/** /**
* Extends sound manager to allow sounds to be pulled out of the locked map. * Extends sound manager to allow sounds to be pulled out of the locked map.
*/ */