Examples of loop()


Examples of codeanticode.gsvideo.GSMovie.loop()

  /**
   * Loop the movie.
   */
  public void loop() {
    GSMovie movie = getMovie();
    movie.loop();
  }


  /**
   * No looping.
View Full Code Here

Examples of com.badlogic.gdx.audio.Sound.loop()

    @Override
    public void playSound(String name, boolean loop) {
        Sound s = m_soundList.get(name);
        if (loop) {
            s.loop(m_volumeFX);
        } else {
            s.play(m_volumeFX);

        }
    }
View Full Code Here

Examples of com.offbytwo.iclojure.repl.IClojureRepl.loop()

            final IClojureRepl repl = new IClojureRepl(reader);
            new ControlCSignalHandler(repl).install();

            preamble(reader);
            loadRequestedScripts(args);
            repl.loop();

        } catch (IOException e) {
            e.printStackTrace();
            System.err.println("Unable to create console reader");
        } catch (ClassNotFoundException e) {
View Full Code Here

Examples of fr.neatmonster.nocheatplus.utilities.PassableRayTracing.loop()

        FakeBlockCache bc = new FakeBlockCache();
        PassableRayTracing rt = new PassableRayTracing();
        rt.setBlockCache(bc);
        double[] coords = new double[]{0.5, 0.5, -0.5, 0.5, 0.5, 1.5};
        rt.set(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]);
        rt.loop();
        if (rt.collides()) {
            TestRayTracing.doFail("Expect not to collide when moving through a block.", coords);
        }
        if (rt.getStepsDone() > 4) {
            TestRayTracing.doFail("Expect less than 4 steps for moving straight through a block of air.", coords);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.utilities.RayTracing.loop()

                    // Failure.
                    doFail("Bad target " + name + "-coordinate: " + current + " instead of " + b, coords);
                }
            }   
        };
        rt.loop();
        return rt;
    }

    public static RayTracing checkNumberOfSteps(double[] coords, int steps) {
        CountRayTracing crt = new CountRayTracing(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.utilities.RayTracing.loop()

                    return false;
                }
                return true;
            }
        };
        rt.loop();
        return rt;
    }

    @Test
    public void testNumberOfSteps(){
View Full Code Here

Examples of java.applet.AudioClip.loop()

                    }
                    switch (d) {
                    case SLOW1:
                    case SLOW2:
                    case SLOW3:
                        slowRumble.loop();
                        break;
                    default:
                        slowRumble.stop();
                    }
                }));
View Full Code Here

Examples of java.applet.AudioClip.loop()

            //you need an au file format to use this method
            URL url = new URL(
                strFileName);
           // "file://" +   System.getProperty("user.dir") +   "/src/edu/uchicago/cs/java/lec10/playsounds/snds/samisen.au");
            AudioClip clip = Applet.newAudioClip(url);
            clip.loop();
    
            //clip.play();

          
            //Thread.sleep(Long.MAX_VALUE);  //this is ugly, but it works without throwing an exception
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

              System.out.println("testplaying " + name + " "
                  + playStream.getFormat());

              final Clip line = (Clip) defaultMixer.getLine(info);
              line.open(playStream);
              line.loop(2);
              final TestLineListener testListener = new TestLineListener();
              line.addLineListener(testListener);
              while (testListener.active) {
                Thread.yield();
              }
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

        }
        try {
            Clip c = AudioSystem.getClip();
            c.open(format,data,0,data.length);
            current = c;
            c.loop(Clip.LOOP_CONTINUOUSLY);
            System.out.println("Playing " + freq);
        }
        catch ( Exception e ) {
            e.printStackTrace();
        }
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.