Package com.sun.media.sound
Class ModelByteBufferWavetable
java.lang.Object
com.sun.media.sound.ModelByteBufferWavetable
- All Implemented Interfaces:
ModelOscillator
,ModelWavetable
Wavetable oscillator for pre-loaded data.
-
Field Summary
Fields inherited from interface com.sun.media.sound.ModelWavetable
LOOP_TYPE_FORWARD, LOOP_TYPE_OFF, LOOP_TYPE_PINGPONG, LOOP_TYPE_RELEASE, LOOP_TYPE_REVERSE
-
Constructor Summary
ConstructorDescriptionModelByteBufferWavetable
(ModelByteBuffer buffer, float pitchcorrection) ModelByteBufferWavetable
(ModelByteBuffer buffer, AudioFormat format) ModelByteBufferWavetable
(ModelByteBuffer buffer, AudioFormat format, float pitchcorrection) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Attenuation is in cB.int
float
float
int
float
open
(float samplerate) void
void
setAttenuation
(float attenuation) void
setLoopLength
(float loopLength) void
setLoopStart
(float loopStart) void
setLoopType
(int loopType) void
setPitchcorrection
(float pitchcorrection)
-
Constructor Details
-
ModelByteBufferWavetable
-
ModelByteBufferWavetable
-
ModelByteBufferWavetable
-
ModelByteBufferWavetable
-
-
Method Details
-
set8BitExtensionBuffer
-
get8BitExtensionBuffer
-
getBuffer
-
getFormat
-
openStream
- Specified by:
openStream
in interfaceModelWavetable
-
getChannels
public int getChannels()- Specified by:
getChannels
in interfaceModelOscillator
-
open
- Specified by:
open
in interfaceModelOscillator
-
getAttenuation
public float getAttenuation()Description copied from interface:ModelOscillator
Attenuation is in cB.- Specified by:
getAttenuation
in interfaceModelOscillator
- Returns:
-
setAttenuation
public void setAttenuation(float attenuation) -
getLoopLength
public float getLoopLength()- Specified by:
getLoopLength
in interfaceModelWavetable
-
setLoopLength
public void setLoopLength(float loopLength) -
getLoopStart
public float getLoopStart()- Specified by:
getLoopStart
in interfaceModelWavetable
-
setLoopStart
public void setLoopStart(float loopStart) -
setLoopType
public void setLoopType(int loopType) -
getLoopType
public int getLoopType()- Specified by:
getLoopType
in interfaceModelWavetable
-
getPitchcorrection
public float getPitchcorrection()- Specified by:
getPitchcorrection
in interfaceModelWavetable
-
setPitchcorrection
public void setPitchcorrection(float pitchcorrection)
-