Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
com.sun.media.sound
public class: DLSSample [javadoc | source]
java.lang.Object
   javax.sound.midi.SoundbankResource
      com.sun.media.sound.DLSSample
This class is used to store the sample data itself. A sample is encoded as PCM audio stream and in DLS Level 1 files it is always a mono 8/16 bit stream. They are stored just like RIFF WAVE files are stored. It is stored inside a "wave" List Chunk inside DLS files.
Field Summary
protected  byte[] guid     
protected  DLSInfo info     
protected  DLSSampleOptions sampleoptions     
protected  ModelByteBuffer data     
protected  AudioFormat format     
Constructor:
 public DLSSample() 
 public DLSSample(Soundbank soundBank) 
Method from com.sun.media.sound.DLSSample Summary:
getData,   getDataBuffer,   getFormat,   getGuid,   getInfo,   getName,   getSampleoptions,   setData,   setData,   setData,   setFormat,   setGuid,   setName,   setSampleoptions,   toString
Methods from javax.sound.midi.SoundbankResource:
getData,   getDataClass,   getName,   getSoundbank
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.media.sound.DLSSample Detail:
 public Object getData() 
 public ModelByteBuffer getDataBuffer() 
 public AudioFormat getFormat() 
 public byte[] getGuid() 
 public DLSInfo getInfo() 
 public String getName() 
 public DLSSampleOptions getSampleoptions() 
 public  void setData(ModelByteBuffer data) 
 public  void setData(byte[] data) 
 public  void setData(byte[] data,
    int offset,
    int length) 
 public  void setFormat(AudioFormat format) 
 public  void setGuid(byte[] guid) 
 public  void setName(String name) 
 public  void setSampleoptions(DLSSampleOptions sampleOptions) 
 public String toString()