Examples of ISound


Examples of com.neophob.sematrix.core.sound.ISound

        rect(GENERIC_X_OFS, localY+SELECTED_MARKER+4, frames, WIDGET_BAR_SIZE);
        fill(2, 52, 77);
        rect(GENERIC_X_OFS+frames, localY+SELECTED_MARKER+4, xSizeForEachWidget-frames-WIDGET_BOARDER, WIDGET_BAR_SIZE);

        //draw sound stats
        ISound snd = Collector.getInstance().getSound();
        int xofs = GENERIC_X_OFS+xSizeForEachWidget;
        int xx = (xSizeForEachWidget-WIDGET_BOARDER*2)/3;

        colorSelect(snd.isKick());
        rect(xofs, localY+SELECTED_MARKER+4, xx, WIDGET_BAR_SIZE);

        xofs+=xx+WIDGET_BOARDER/2;
        colorSelect(snd.isSnare());
        rect(xofs, localY+SELECTED_MARKER+4, xx, WIDGET_BAR_SIZE);

        xofs+=xx+WIDGET_BOARDER/2;
        colorSelect(snd.isHat());       
        rect(xofs, localY+SELECTED_MARKER+4, xx, WIDGET_BAR_SIZE);       
       
        //Draw input volume
        int vol = (int)((xSizeForEachWidget-WIDGET_BOARDER)*snd.getVolumeNormalized());       
        fill(0, 180, 234);
        rect(GENERIC_X_OFS+2*xSizeForEachWidget, localY+SELECTED_MARKER+4, vol, WIDGET_BAR_SIZE);
        fill(2, 52, 77);
        rect(GENERIC_X_OFS+2*xSizeForEachWidget+vol, localY+SELECTED_MARKER+4, xSizeForEachWidget-WIDGET_BOARDER-vol, WIDGET_BAR_SIZE);
       
View Full Code Here

Examples of net.minecraft.client.audio.ISound

              }

              float newVolume = volume / Math.max(0.01F, ((IGalacticraftWorldProvider) player.worldObj.provider).getSoundVolReductionAmount());

              this.soundPlayList.add(new SoundPlayEntry(event.name, x, y, z, newVolume));
              ISound newSound = new PositionedSoundRecord(event.sound.getPositionedSoundLocation(), newVolume, event.sound.getPitch(), x, y, z);
              event.manager.playSound(newSound);
              event.result = null;
              return;
            }
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.