public class SoundLoader extends Object
| Constructor and Description |
|---|
SoundLoader(ResourceManager rmgr,
String defaultBundle,
String defaultPath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBundle(String packagePath)
Returns the bundle for sounds in the given package.
|
String[] |
getPaths(String packagePath,
String key)
Returns the paths to sounds for
key in the given package. |
InputStream |
getSound(String bundle,
String path)
Attempts to load a sound stream from the given path from the given bundle and from the
classpath.
|
byte[][] |
load(String packagePath,
String key)
Loads the sounds for key from the config in
<packagePath>/sound.properties |
void |
shutdown() |
public SoundLoader(ResourceManager rmgr, String defaultBundle, String defaultPath)
public byte[][] load(String packagePath, String key) throws IOException
<packagePath>/sound.propertiesIOExceptionpublic String[] getPaths(String packagePath, String key)
key in the given package. Returns null if no
sounds are found.public String getBundle(String packagePath)
public InputStream getSound(String bundle, String path) throws IOException
IOExceptionpublic void shutdown()
Copyright © 2015. All rights reserved.