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.
|
||||
*/
|
||||
@@ -182,7 +191,7 @@ public class SoundManager
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
protected ClipBuffer getClip (ClipProvider provider, String path)
|
||||
|
||||
Reference in New Issue
Block a user