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
ConstructorsConstructorDescriptionModelByteBufferWavetable(ModelByteBuffer buffer, float pitchcorrection) ModelByteBufferWavetable(ModelByteBuffer buffer, AudioFormat format) ModelByteBufferWavetable(ModelByteBuffer buffer, AudioFormat format, float pitchcorrection) -
Method Summary
Modifier and TypeMethodDescriptionfloatAttenuation is in cB.intfloatfloatintfloatopen(float samplerate) voidvoidsetAttenuation(float attenuation) voidsetLoopLength(float loopLength) voidsetLoopStart(float loopStart) voidsetLoopType(int loopType) voidsetPitchcorrection(float pitchcorrection)
-
Constructor Details
-
ModelByteBufferWavetable
-
ModelByteBufferWavetable
-
ModelByteBufferWavetable
-
ModelByteBufferWavetable
-
-
Method Details
-
set8BitExtensionBuffer
-
get8BitExtensionBuffer
-
getBuffer
-
getFormat
-
openStream
- Specified by:
openStreamin interfaceModelWavetable
-
getChannels
public int getChannels()- Specified by:
getChannelsin interfaceModelOscillator
-
open
- Specified by:
openin interfaceModelOscillator
-
getAttenuation
public float getAttenuation()Description copied from interface:ModelOscillatorAttenuation is in cB.- Specified by:
getAttenuationin interfaceModelOscillator- Returns:
-
setAttenuation
public void setAttenuation(float attenuation) -
getLoopLength
public float getLoopLength()- Specified by:
getLoopLengthin interfaceModelWavetable
-
setLoopLength
public void setLoopLength(float loopLength) -
getLoopStart
public float getLoopStart()- Specified by:
getLoopStartin interfaceModelWavetable
-
setLoopStart
public void setLoopStart(float loopStart) -
setLoopType
public void setLoopType(int loopType) -
getLoopType
public int getLoopType()- Specified by:
getLoopTypein interfaceModelWavetable
-
getPitchcorrection
public float getPitchcorrection()- Specified by:
getPitchcorrectionin interfaceModelWavetable
-
setPitchcorrection
public void setPitchcorrection(float pitchcorrection)
-