espresso3d.engine.lowlevel.sound
Class E3DWaveFile
java.lang.Object
espresso3d.engine.lowlevel.sound.E3DWaveFile
- public class E3DWaveFile
- extends java.lang.Object
- Author:
- Curt
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
|
Constructor Summary |
E3DWaveFile(javax.sound.sampled.AudioInputStream audioInputStream)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E3DWaveFile
public E3DWaveFile(javax.sound.sampled.AudioInputStream audioInputStream)
getALFormat
public int getALFormat()
throws E3DInvalidSoundFormatException
- Returns one of AL10.AL_FORMAT_MONO8, AL10.AL_FORMAT_MONO16, AL10.AL_FORMAT_STEREO8, AL10.AL_FORMAT_STEREO16, or -1
- Returns:
-
- Throws:
E3DInvalidSoundFormatException
getDataSize
public long getDataSize()
getDataBuffer
public java.nio.ByteBuffer getDataBuffer()
throws java.io.IOException
- Throws:
java.io.IOException
getSampleRate
public float getSampleRate()
getAudioStream
public javax.sound.sampled.AudioInputStream getAudioStream()
setAudioStream
public void setAudioStream(javax.sound.sampled.AudioInputStream audioStream)