Examples of SoundSystem


Examples of paulscode.sound.SoundSystem

          */
      } else if (split[0].equalsIgnoreCase("music")) {
         if (split.length < 2) {
            playRandomMusic();
         } else if (split[1].equalsIgnoreCase("next") || split[1].equalsIgnoreCase("skip")) {
            SoundSystem sound = getSoundSystem();
            if (sound != null) {
               if (sound.playing("BgMusic")) {
                  sound.stop("BgMusic");
               }
               if (sound.playing("streaming")) {
                  sound.stop("streaming");
               }
            }
            playRandomMusic();
         } else if (split[1].equalsIgnoreCase("pause")) {
            SoundSystem sound = getSoundSystem();
            if (sound != null) {
               if (sound.playing("BgMusic")) {
                  sound.pause("BgMusic");
               }
               if (sound.playing("streaming")) {
                  sound.pause("streaming");
               }
            }
         } else if (split[1].equalsIgnoreCase("play")) {
            SoundSystem sound = getSoundSystem();
            if (sound != null) {
               if (!sound.playing("BgMusic")) {
                  sound.play("BgMusic");
               }
               if (!sound.playing("BgMusic")) {
                  playRandomMusic();
               }
            } else {
               playRandomMusic();
            }
         } else if (split[1].equalsIgnoreCase("stop")) {
            SoundSystem sound = getSoundSystem();
            if (sound != null) {
               if (sound.playing("BgMusic")) {
                  sound.stop("BgMusic");
               }
               if (sound.playing("streaming")) {
                  sound.stop("streaming");
               }
            }
         } else {
            try {
               int volume = Integer.parseInt(split[1]);
View Full Code Here

Examples of paulscode.sound.SoundSystem

            options.saveOptions();
            SoundSystemConfig.addLibrary(paulscode.sound.libraries.LibraryLWJGLOpenAL.class);
            SoundSystemConfig.setCodec("ogg", paulscode.sound.codecs.CodecJOrbis.class);
            SoundSystemConfig.setCodec("mus", net.minecraft.src.CodecMus.class);
            SoundSystemConfig.setCodec("wav", paulscode.sound.codecs.CodecWav.class);
            sndSystem = new SoundSystem();
            options.soundVolume = f;
            options.musicVolume = f1;
            options.saveOptions();
        }
        catch (Throwable throwable)
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.