public class ResourceStream extends URLStream
ResourceManager.activateResourceProtocol() must be called).| Constructor and Description |
|---|
ResourceStream(SoundManager soundmgr,
String resource,
boolean loop)
Creates a new stream for the specified resource (from the default bundle).
|
ResourceStream(SoundManager soundmgr,
String bundle,
String resource,
boolean loop)
Creates a new stream for the specified resource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
queueResource(String resource,
boolean loop)
Adds a resource (from the default bundle) to the queue of files to play.
|
void |
queueResource(String bundle,
String resource,
boolean loop)
Adds a resource to the queue of files to play.
|
public ResourceStream(SoundManager soundmgr, String resource, boolean loop) throws IOException
loop - whether or not to play the file in a continuous loop
if there's nothing on the queueIOExceptionpublic ResourceStream(SoundManager soundmgr, String bundle, String resource, boolean loop) throws IOException
loop - whether or not to play the file in a continuous loop
if there's nothing on the queueIOExceptionpublic void queueResource(String resource, boolean loop)
loop - if true, play this file in a loop if there's nothing else
on the queueCopyright © 2015. All rights reserved.