org.xith3d.sound.drivers.javasound
Class SoundBufferImpl

java.lang.Object
  extended by org.xith3d.sound.drivers.javasound.SoundBufferImpl
All Implemented Interfaces:
SoundBuffer

public class SoundBufferImpl
extends java.lang.Object
implements SoundBuffer

JavaSound implementation of the SoundBuffer.


Field Summary
protected  javax.sound.sampled.AudioFormat af
           
protected  byte[] data
           
protected  int size
           
 
Constructor Summary
SoundBufferImpl(SoundDriverImpl driver)
           
 
Method Summary
 javax.sound.sampled.DataLine.Info getInfo()
           
 void setData(BufferFormat format, int size, int frequency, java.nio.ByteBuffer data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

af

protected javax.sound.sampled.AudioFormat af

data

protected byte[] data

size

protected int size
Constructor Detail

SoundBufferImpl

public SoundBufferImpl(SoundDriverImpl driver)
Parameters:
driver -
Method Detail

setData

public void setData(BufferFormat format,
                    int size,
                    int frequency,
                    java.nio.ByteBuffer data)
Specified by:
setData in interface SoundBuffer

getInfo

public javax.sound.sampled.DataLine.Info getInfo()