Examples of stop()


Examples of javax.media.Processor.stop()

      public void controllerUpdate(ControllerEvent event)
      {
        if (event instanceof EndOfMediaEvent)
        {
          logger.info("EOM, stopping processor");
          processor.stop();
         
        }
      }
     
    });
View Full Code Here

Examples of javax.media.bean.playerbean.MediaPlayer.stop()

        p.setStopTime(new Time(0));
        p.setTimeBase(null);
       
        p.syncStart(new Time(0));
        p.start();
        p.stop();
        p.prefetch();
        p.realize();
        p.close();
        p.deallocate();
       
View Full Code Here

Examples of javax.media.protocol.URLDataSource.stop()

      final int res = st.read(buf, 0, buf.length);
      assertEquals(res, 1);
    }
   
    s.start();
    s.stop();
    s.connect()// new connection - new streams?
   
    assertEquals(s.getStreams().length, 1);
    assertTrue(s.getStreams() != sts);
    assertTrue(s.getStreams()[0] != st);
View Full Code Here

Examples of javax.microedition.media.Player.stop()

        final Player player = _player;
        _player = null;
        if (player != null) {
            try {
                player.stop();
            } catch (final Exception e) {
            }
            try {
                player.close();
            } catch (final Exception e) {
View Full Code Here

Examples of javax.resource.spi.ResourceAdapter.stop()

            while (namingEnumeration != null && namingEnumeration.hasMoreElements()) {
                Binding binding = namingEnumeration.nextElement();
                Object object = binding.getObject();
                ResourceAdapter resourceAdapter = (ResourceAdapter) object;
                try {
                    resourceAdapter.stop();
                } catch (Exception e) {
                    logger.fatal("ResourceAdapter Shutdown Failed: "+binding.getName(), e);
                }
            }
        } catch (Throwable e) {
View Full Code Here

Examples of javax.sound.midi.Sequencer.stop()

        if (play) {
            midiSequencer.start();
            while (midiSequencer.isRunning()) {
                try { Thread.sleep(100); } catch (Exception e) {}
            }
            midiSequencer.stop();
        }
       
        midiSequencer.close();
       
        if (convert) {
View Full Code Here

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

            //clip.setFramePosition(0);
            clip.start()
            try
            {//wait until clip finishes and then close it so it works on OS/2
                sleep(clip.getMicrosecondLength()/1000);
                clip.stop();
                clip.close();
                clip=null;
            } catch (InterruptedException e)
            {
                // TODO Auto-generated catch block
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.stop()

                  line.write(myData, 0, numBytesRead);
                }
              }catch(Exception e) {}

              line.drain();
              line.stop();
            }
          }.start();

          return line;
        }else {
View Full Code Here

Examples of javax.sound.sampled.TargetDataLine.stop()

      targetDataLine.start();

      AudioInputStream linearStream = new AudioInputStream(targetDataLine);
      linearStream.read(voiceData, 0, voiceData.length);
      analyzeArray(voiceData);
      targetDataLine.stop();
      targetDataLine.close();

      ByteArrayInputStream baiStream = new ByteArrayInputStream(voiceData);
      AudioInputStream aiStream = new AudioInputStream(baiStream,
          soundFormat, voiceData.length);
View Full Code Here

Examples of javax.swing.Timer.stop()

                        Timer t = getTimer();
                        if (t != null) {
                            if (check.isSelected()) {
                                t.restart();
                            } else {
                                t.stop();
                            }
                        }
                    }
                });
                timerButton.setToolTipText("<HTML><BODY>Reload the map data from the original source at specified intervals.</BODY></HTML>");
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.