Examples of play()


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

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

        }
    }

    @Override
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.utils.Effect.play()

    Effect eff = parse(info);
    if (info.isAction(SignActionType.MEMBER_MOVE)) {
      if (move) {
        if (info.isTrainSign()) {
          for (MinecartMember<?> member : info.getGroup()) {
            eff.play(member.getEntity().getLocation());
          }
        } else if (info.isCartSign()) {
          eff.play(info.getMember().getEntity().getLocation());
        }
      }
View Full Code Here

Examples of com.golden.gamedev.engine.BaseAudioRenderer.play()

      }
    }
   
    // test first song
    try {
      mp3.play(new URL(music1));
    }
    catch (Exception e) {
      e.printStackTrace();
    }
   
View Full Code Here

Examples of com.google.gwt.dom.client.AudioElement.play()

       * http://code.google.com/p/chromium/issues/detail?id=71323
       * http://code.google.com/p/chromium/issues/detail?id=75725
       */
      createAudioElement();
    }
    elem.play();
    // best guess is that the sound played, so return true
    return true;
  }

  @Override
View Full Code Here

Examples of com.google.mockwebserver.MockWebServer.play()

      AtomicReference<URL> url = setURLReplacingDispatcher(server);
      server.enqueue(new MockResponse().setResponseCode(200).setBody(authResponse));
      server.enqueue(new MockResponse().setResponseCode(200).addHeader("ETag", "a00"));
      server.enqueue(new MockResponse().setResponseCode(200).addHeader("ETag", "b00"));
      server.enqueue(new MockResponse().setResponseCode(200).addHeader("ETag", "fff"));
      server.play();
      url.set(server.getUrl("/"));

      byte[] bytes = "0123456789abcdef".getBytes(Charsets.US_ASCII);
      int partSize = bytes.length / 2;
      SequentialMultipartUploadStrategy api = mockSequentialMultipartUploadStrategy(url.get().toString(), partSize);
View Full Code Here

Examples of com.jitcaforwin.extended.api.internal.CD.play()

        } else {
          System.out.println("No CD available!");
        }
      } else {
        System.out.println("Start playing: " + cd.getTitle());
        cd.play();
      }
     
      iTunes.close();

    } catch (JitcaException e) {
View Full Code Here

Examples of com.jme3.audio.AudioNode.play()

                if (myApp.getUserSettings().isMusicMuted()) {
                    return;
                }

                toPlay.play();
            } else {

                if (myApp.getUserSettings().isSoundFXMuted()) {
                    return;
                }
View Full Code Here

Examples of com.jme3.cinematic.events.CinematicEvent.play()

        if (isInitialized()) {
            if (playState == PlayState.Paused) {
                for (int i = 0; i < cinematicEvents.size(); i++) {
                    CinematicEvent ce = cinematicEvents.get(i);
                    if (ce.getPlayState() == PlayState.Paused) {
                        ce.play();
                    }
                }
            }
        }
    }
View Full Code Here

Examples of com.kurento.kmf.media.PlayerEndpoint.play()

    SdpEndpoint sdpEndpoint = buildAndConnectSdpEndpoint(mediaPipeline,
        playerEndpoint, recorderEndpoint);

    if (playerEndpoint != null)
      playerEndpoint.play();

    if (recorderEndpoint != null)
      recorderEndpoint.record();

    activateMedia(sdpEndpoint, null); // TODO. Ask Jose if
View Full Code Here

Examples of com.sertaogames.cactus2d.components.AnimationComponent.play()

    AnimationComponent anim = new AnimationComponent();
    Texture tx  = new Texture(Gdx.files.internal("data/textures/sismoAnim.png"));
    int[] frames = { 0, 1, 2, 3, 4, 5, 6, 7};
    anim.addAnimation("anim", tx, 384, 192, frames, 5, false);
   
    anim.play("anim");
   
    animatedGO.AddComponent(anim);
    animatedGO.AddComponent(new SpriteRendererComponent(null));
    animatedGO.transform.getPosition().add(width/2 - 370/2, height/2 - 215/2);
    seismographGO.addGameObject(animatedGO);
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.