com.sun.media.sound
Class SoftAudioBuffer

java.lang.Object
  extended by com.sun.media.sound.SoftAudioBuffer

public class SoftAudioBuffer
extends java.lang.Object

This class is used to store audio buffer.

Author:
Karl Helgason

Constructor Summary
SoftAudioBuffer(int size, javax.sound.sampled.AudioFormat format)
           
 
Method Summary
 float[] array()
           
 void clear()
           
 void get(byte[] buffer, int channel)
           
 javax.sound.sampled.AudioFormat getFormat()
           
 int getSize()
           
 boolean isSilent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftAudioBuffer

public SoftAudioBuffer(int size,
                       javax.sound.sampled.AudioFormat format)
Method Detail

getFormat

public javax.sound.sampled.AudioFormat getFormat()

getSize

public int getSize()

clear

public void clear()

isSilent

public boolean isSilent()

array

public float[] array()

get

public void get(byte[] buffer,
                int channel)