Examples of addLineListener()


Examples of com.baulsupp.kolja.log.line.LineIndex.addLineListener()

    LineIndex li = format.getLineIndex(buffer);
    models.add(li);

    if (format.supportsEvents()) {
      eventList = format.getEventList(li);
      li.addLineListener(eventList);
    }

    // TODO move filtering to config and allow choices
    Filter filter = new PriorityFilter();
    LineIndex filteredIndex = new FilteredLineIndex(li, filter);
View Full Code Here

Examples of com.meapsoft.Synthesizer.addLineListener()

            b.setBlipWav(dataDirectory + slash + "blip.wav");
            b.compose();
            Synthesizer synth = new Synthesizer(edl, null);
           
            //add the waveform panel as a line listener
            synth.addLineListener((LineListener)meapsoftGUI.waveformPanel);
           
            if(playThread != null)
            {
                playThread.interrupt();
                playThread.stop();
View Full Code Here

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

              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();
              }
              line.close();
            }
View Full Code Here

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

      stream = AudioSystem.getAudioInputStream(ClientGUI.getResource(file));
      DataLine.Info info = new DataLine.Info(Clip.class, stream.getFormat());
      clip = (Clip) AudioSystem.getLine(info);
      clip.open(stream);
      clip.start();
      clip.addLineListener(new LineListener() {
       
        public void update(LineEvent event) {
          if (event.getType() == LineEvent.Type.STOP)
            event.getLine().close();
        }
View Full Code Here

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

            AudioFormat format = audioInputStream.getFormat();
            DataLine.Info   info = new DataLine.Info(Clip.class, format,
                                             AudioSystem.NOT_SPECIFIED);
            try {
                audioClip = (Clip) AudioSystem.getLine(info);
                audioClip.addLineListener(this);
                audioClip.open(audioInputStream);
            } catch (LineUnavailableException e) {
                project.log("The sound device is currently unavailable");
                return;
            } catch (IOException e) {
View Full Code Here

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

            AudioFormat format = audioInputStream.getFormat();
            DataLine.Info   info = new DataLine.Info(Clip.class, format,
                                             AudioSystem.NOT_SPECIFIED);
            try {
                audioClip = (Clip) AudioSystem.getLine(info);
                audioClip.addLineListener(this);
                audioClip.open(audioInputStream);
            } catch (LineUnavailableException e) {
                project.log("The sound device is currently unavailable");
                return;
            } catch (IOException e) {
View Full Code Here

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

            AudioFormat format = audioInputStream.getFormat();
            DataLine.Info   info = new DataLine.Info(Clip.class, format,
                                             AudioSystem.NOT_SPECIFIED);
            try {
                audioClip = (Clip) AudioSystem.getLine(info);
                audioClip.addLineListener(this);
                audioClip.open(audioInputStream);
            } catch (LineUnavailableException e) {
                project.log("The sound device is currently unavailable");
                return;
            } catch (IOException e) {
View Full Code Here

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

                        return true;
                    }
                }
                try {
                    Clip clip = AudioSystem.getClip();
                    clip.addLineListener(this);
                    AudioInputStream stream = null;
                    try {
                        stream = AudioSystem
                            .getAudioInputStream(fileOrURL.asURL());
                    } catch (IOException ex) {
View Full Code Here

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

            AudioFormat format = audioInputStream.getFormat();
            DataLine.Info   info = new DataLine.Info(Clip.class, format,
                                             AudioSystem.NOT_SPECIFIED);
            try {
                audioClip = (Clip) AudioSystem.getLine(info);
                audioClip.addLineListener(this);
                audioClip.open(audioInputStream);
            } catch (LineUnavailableException e) {
                project.log("The sound device is currently unavailable");
                return;
            } catch (IOException e) {
View Full Code Here

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

            AudioFormat format = audioInputStream.getFormat();
            DataLine.Info   info = new DataLine.Info(Clip.class, format,
                                             AudioSystem.NOT_SPECIFIED);
            try {
                audioClip = (Clip) AudioSystem.getLine(info);
                audioClip.addLineListener(this);
                audioClip.open(audioInputStream);
            } catch (LineUnavailableException e) {
                project.log("The sound device is currently unavailable");
                return;
            } catch (IOException e) {
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.