Added an AL context. Provide a method in the sound manager to preload sound data.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@459 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -135,6 +135,15 @@ public class SoundManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads a clip buffer for the sound clip loaded via the specified provider with the
|
||||||
|
* specified path. The loaded clip is placed in the cache.
|
||||||
|
*/
|
||||||
|
public void loadClip (ClipProvider provider, String path)
|
||||||
|
{
|
||||||
|
getClip(provider, path);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a sound manager and initializes the OpenAL sound subsystem.
|
* Creates a sound manager and initializes the OpenAL sound subsystem.
|
||||||
*/
|
*/
|
||||||
@@ -182,7 +191,7 @@ public class SoundManager
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a clip buffer for the sound clip loaded via the specified provider with the
|
* Creates a clip buffer for the sound clip loaded via the specified provider with the
|
||||||
* specified path. The clip buffer may come from teh cache, and it will immediately be queued
|
* specified path. The clip buffer may come from the cache, and it will immediately be queued
|
||||||
* for loading if it is not already loaded.
|
* for loading if it is not already loaded.
|
||||||
*/
|
*/
|
||||||
protected ClipBuffer getClip (ClipProvider provider, String path)
|
protected ClipBuffer getClip (ClipProvider provider, String path)
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// $Id$
|
||||||
|
|
||||||
|
package com.threerings.openal.util;
|
||||||
|
|
||||||
|
import com.threerings.openal.ClipProvider;
|
||||||
|
import com.threerings.openal.SoundManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides access to the various components of the OpenAL sound system.
|
||||||
|
*/
|
||||||
|
public interface AlContext
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Returns a reference to the sound manager.
|
||||||
|
*/
|
||||||
|
public SoundManager getSoundManager ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a reference to the clip provider.
|
||||||
|
*/
|
||||||
|
public ClipProvider getClipProvider ();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user