|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.openal.AiffData
public class AiffData
Utitlity class for loading wavefiles.
| Field Summary | |
|---|---|
java.nio.ByteBuffer |
data
actual AIFF data |
int |
format
format type of data |
int |
samplerate
sample rate of data |
| Method Summary | |
|---|---|
static AiffData |
create(javax.sound.sampled.AudioInputStream ais)
Creates a AiffData container from the specified stream |
static AiffData |
create(byte[] buffer)
Creates a AiffData container from the specified bytes |
static AiffData |
create(java.nio.ByteBuffer buffer)
Creates a AiffData container from the specified ByetBuffer. |
static AiffData |
create(java.io.InputStream is)
Creates a AiffData container from the specified inputstream |
static AiffData |
create(java.lang.String path)
Creates a AiffData container from the specified in the classpath |
static AiffData |
create(java.net.URL path)
Creates a AiffData container from the specified url |
void |
dispose()
Disposes the Aiffdata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.nio.ByteBuffer data
public final int format
public final int samplerate
| Method Detail |
|---|
public void dispose()
public static AiffData create(java.net.URL path)
path - URL to file
public static AiffData create(java.lang.String path)
path - path to file (relative, and in classpath)
public static AiffData create(java.io.InputStream is)
is - InputStream to read from
public static AiffData create(byte[] buffer)
buffer - array of bytes containing the complete Aiff file
public static AiffData create(java.nio.ByteBuffer buffer)
buffer - ByteBuffer containing sound file
public static AiffData create(javax.sound.sampled.AudioInputStream ais)
ais - AudioInputStream to read from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||