Class SF2Sample


public final class SF2Sample extends SoundbankResource
Soundfont sample storage.
  • Field Details

    • name

      String name
    • startLoop

      long startLoop
    • endLoop

      long endLoop
    • sampleRate

      long sampleRate
    • originalPitch

      int originalPitch
    • pitchCorrection

      byte pitchCorrection
    • sampleType

      int sampleType
    • data

    • data24

  • Constructor Details

    • SF2Sample

      public SF2Sample(Soundbank soundBank)
    • SF2Sample

      public SF2Sample()
  • Method Details

    • getData

      public Object getData()
      Specified by:
      getData in class SoundbankResource
    • getDataBuffer

      public ModelByteBuffer getDataBuffer()
    • getData24Buffer

      public ModelByteBuffer getData24Buffer()
    • getFormat

      public AudioFormat getFormat()
    • setData

      public void setData(ModelByteBuffer data)
    • setData

      public void setData(byte[] data)
    • setData

      public void setData(byte[] data, int offset, int length)
    • setData24

      public void setData24(ModelByteBuffer data24)
    • setData24

      public void setData24(byte[] data24)
    • setData24

      public void setData24(byte[] data24, int offset, int length)
    • getName

      public String getName()
      Overrides:
      getName in class SoundbankResource
    • setName

      public void setName(String name)
    • getEndLoop

      public long getEndLoop()
    • setEndLoop

      public void setEndLoop(long endLoop)
    • getOriginalPitch

      public int getOriginalPitch()
    • setOriginalPitch

      public void setOriginalPitch(int originalPitch)
    • getPitchCorrection

      public byte getPitchCorrection()
    • setPitchCorrection

      public void setPitchCorrection(byte pitchCorrection)
    • getSampleLink

      public int getSampleLink()
    • setSampleLink

      public void setSampleLink(int sampleLink)
    • getSampleRate

      public long getSampleRate()
    • setSampleRate

      public void setSampleRate(long sampleRate)
    • getSampleType

      public int getSampleType()
    • setSampleType

      public void setSampleType(int sampleType)
    • getStartLoop

      public long getStartLoop()
    • setStartLoop

      public void setStartLoop(long startLoop)
    • toString

      public String toString()
      Overrides:
      toString in class Object