com.jme.sound.openAL.objects.util
Class Buffer

java.lang.Object
  extended bycom.jme.sound.openAL.objects.util.Buffer

public class Buffer
extends java.lang.Object

Author:
Arman Ozcelik

Field Summary
protected  int bufferNumber
           
protected  float playTime
           
 
Constructor Summary
protected Buffer(int bufferNumber)
           
 
Method Summary
 void configure(java.nio.ByteBuffer data, int format, int freq, float durationInSeconds)
           
 void delete()
           
static Buffer[] generateBuffers(int numOfBuffers)
           
 int getBitDepth()
           
 int getBufferNumber()
           
 java.nio.ByteBuffer getData()
           
 float getDuration()
           
 int getFrequency()
           
 int getNumChannels()
           
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bufferNumber

protected int bufferNumber

playTime

protected float playTime
Constructor Detail

Buffer

protected Buffer(int bufferNumber)
Method Detail

configure

public void configure(java.nio.ByteBuffer data,
                      int format,
                      int freq,
                      float durationInSeconds)

delete

public void delete()

getBitDepth

public int getBitDepth()

getNumChannels

public int getNumChannels()

getData

public java.nio.ByteBuffer getData()

getFrequency

public int getFrequency()

getSize

public int getSize()

getBufferNumber

public int getBufferNumber()

getDuration

public float getDuration()

generateBuffers

public static Buffer[] generateBuffers(int numOfBuffers)