| Constructor and Description |
|---|
JavaAudio(JavaPlatform platform) |
| Modifier and Type | Method and Description |
|---|---|
playn.java.JavaSound |
createSound(InputStream in,
boolean music)
Creates a sound instance from the audio data available via
in. |
dispatchLoaded, dispatchLoadErrorpublic JavaAudio(JavaPlatform platform)
public playn.java.JavaSound createSound(InputStream in, boolean music)
in.in - an input stream via which the audio data can be read.music - if true, a custom Clip implementation will be used which can handle long
audio clips; if false, the default Java clip implementation is used which cannot handle long
audio clips.Copyright © 2013. All Rights Reserved.