< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/SoftChorus.java

Print this page

        

@@ -20,10 +20,11 @@
  *
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
+
 package com.sun.media.sound;
 
 import java.util.Arrays;
 
 /**

@@ -188,10 +189,11 @@
     private float dirty_vdelay1R_feedback;
     private float dirty_vdelay1L_reverbsendgain;
     private float dirty_vdelay1R_reverbsendgain;
     private float controlrate;
 
+    @Override
     public void init(float samplerate, float controlrate) {
         this.controlrate = controlrate;
         vdelay1L = new LFODelay(samplerate, controlrate);
         vdelay1R = new LFODelay(samplerate, controlrate);
         vdelay1L.setGain(1.0f); // %

@@ -200,10 +202,11 @@
         vdelay1R.setPhase(0);
 
         globalParameterControlChange(new int[]{0x01 * 128 + 0x02}, 0, 2);
     }
 
+    @Override
     public void globalParameterControlChange(int[] slothpath, long param,
             long value) {
         if (slothpath.length == 1) {
             if (slothpath[0] == 0x01 * 128 + 0x02) {
                 if (param == 0) { // Chorus Type

@@ -269,10 +272,11 @@
 
             }
         }
     }
 
+    @Override
     public void processControlLogic() {
         if (dirty) {
             dirty = false;
             vdelay1L.setRate(dirty_vdelay1L_rate);
             vdelay1R.setRate(dirty_vdelay1R_rate);

@@ -284,10 +288,11 @@
             vdelay1R.setReverbSendGain(dirty_vdelay1R_reverbsendgain);
         }
     }
     double silentcounter = 1000;
 
+    @Override
     public void processAudio() {
 
         if (inputA.isSilent()) {
             silentcounter += 1 / controlrate;
 

@@ -315,19 +320,22 @@
             if (right != null)
                 vdelay1R.processReplace(inputA, right, reverb);
         }
     }
 
+    @Override
     public void setInput(int pin, SoftAudioBuffer input) {
         if (pin == 0)
             inputA = input;
     }
 
+    @Override
     public void setMixMode(boolean mix) {
         this.mix = mix;
     }
 
+    @Override
     public void setOutput(int pin, SoftAudioBuffer output) {
         if (pin == 0)
             left = output;
         if (pin == 1)
             right = output;
< prev index next >