Package com.sun.media.sound
Class SF2Sample
java.lang.Object
javax.sound.midi.SoundbankResource
com.sun.media.sound.SF2Sample
Soundfont sample storage.
-
Field Summary
Modifier and TypeFieldDescription(package private) ModelByteBuffer
(package private) ModelByteBuffer
(package private) long
(package private) String
(package private) int
(package private) byte
(package private) int
(package private) long
(package private) int
(package private) long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
long
getName()
int
byte
int
long
int
long
void
setData
(byte[] data) void
setData
(byte[] data, int offset, int length) void
setData
(ModelByteBuffer data) void
setData24
(byte[] data24) void
setData24
(byte[] data24, int offset, int length) void
setData24
(ModelByteBuffer data24) void
setEndLoop
(long endLoop) void
void
setOriginalPitch
(int originalPitch) void
setPitchCorrection
(byte pitchCorrection) void
setSampleLink
(int sampleLink) void
setSampleRate
(long sampleRate) void
setSampleType
(int sampleType) void
setStartLoop
(long startLoop) toString()
Methods inherited from class javax.sound.midi.SoundbankResource
getDataClass, getSoundbank
-
Field Details
-
name
String name -
startLoop
long startLoop -
endLoop
long endLoop -
sampleRate
long sampleRate -
originalPitch
int originalPitch -
pitchCorrection
byte pitchCorrection -
sampleLink
int sampleLink -
sampleType
int sampleType -
data
ModelByteBuffer data -
data24
ModelByteBuffer data24
-
-
Constructor Details
-
SF2Sample
-
SF2Sample
public SF2Sample()
-
-
Method Details
-
getData
- Specified by:
getData
in classSoundbankResource
-
getDataBuffer
-
getData24Buffer
-
getFormat
-
setData
-
setData
public void setData(byte[] data) -
setData
public void setData(byte[] data, int offset, int length) -
setData24
-
setData24
public void setData24(byte[] data24) -
setData24
public void setData24(byte[] data24, int offset, int length) -
getName
- Overrides:
getName
in classSoundbankResource
-
setName
-
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
-