com.sun.media.sound
Class SoftAudioBuffer
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftAudioBuffer
public SoftAudioBuffer(int size,
javax.sound.sampled.AudioFormat format)
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)