com.threerings.openal
Class Clip

java.lang.Object
  extended by com.threerings.openal.Clip

public class Clip
extends Object

Contains data for a single sampled sound.


Field Summary
 ByteBuffer data
          The audio data.
 int format
          The OpenAL format of this clip: AL10.AL_FORMAT_MONO8, etc.
 int frequency
          The frequency of this clip in samples per second.
 
Constructor Summary
Clip()
           
Clip(org.lwjgl.util.WaveData data)
          Fills in a clip from the given wave data.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

public int format
The OpenAL format of this clip: AL10.AL_FORMAT_MONO8, etc.


frequency

public int frequency
The frequency of this clip in samples per second.


data

public ByteBuffer data
The audio data.

Constructor Detail

Clip

public Clip()

Clip

public Clip(org.lwjgl.util.WaveData data)
Fills in a clip from the given wave data.