|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.filter.SoundFilter
fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.filter.PitchFilter
public class PitchFilter
Field Summary |
---|
Fields inherited from class fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.filter.SoundFilter |
---|
SAMPLE_SIZE_16_BIT, SAMPLE_SIZE_8_BIT |
Constructor Summary | |
---|---|
PitchFilter(float pitchMinValue,
float pitchMaxValue)
Creates an PitchFilter with the specified minimum and maximum relative original sound pitch (in percent) |
Method Summary | |
---|---|
void |
filter(byte[] samples,
int offset,
int length,
int sampleSizeInBits)
Filter do nothing, only AudioFormat was modified |
AudioFormat |
getAudioFormat(AudioInputStream audioInputStream)
Apply coefficient to the original audio input format pitch |
float |
getPitchMaxValue()
|
float |
getPitchMinValue()
|
void |
setPitchMaxValue(float pitchMaxValue)
set the pitch max value |
void |
setPitchMinValue(float pitchMinValue)
ste the pitch min value |
Methods inherited from class fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.filter.SoundFilter |
---|
get16bitSample, get8bitSample, getRemainingSize, reset, set16bitSample, set8bitSample |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PitchFilter(float pitchMinValue, float pitchMaxValue)
pitchMinValue
- the pitch Min ValuepitchMaxValue
- the pitch Max ValueMethod Detail |
---|
public void filter(byte[] samples, int offset, int length, int sampleSizeInBits)
filter
in class SoundFilter
samples
- the samplesoffset
- the offsetlength
- the lengthsampleSizeInBits
- the sample size in bitspublic AudioFormat getAudioFormat(AudioInputStream audioInputStream)
getAudioFormat
in class SoundFilter
audioInputStream
- the audio input stream
public float getPitchMinValue()
public void setPitchMinValue(float pitchMinValue)
pitchMinValue
- the pitch min valuepublic float getPitchMaxValue()
public void setPitchMaxValue(float pitchMaxValue)
pitchMaxValue
- the pitch max value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |