Package javax.sound.sampled

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


        baOut.write(ba, 0, numBytesRead);
        sl.write(ba, 0, numBytesRead); // in Tonausgabe schreiben
      }
      baOut.close(); // close() ist wichtig, k�nnten noch Daten gepuffert
              // sein
      tl.stop(); // eingabe stoppen
      sl.stop(); // ausgabe stoppen
      tl.close(); // eingabe schliessen
      sl.close(); // ausgabe schliessen
      ba = baOut.toByteArray(); // ba liegt brach ruhig wieder verwenden
      ByteArrayInputStream baIn = new ByteArrayInputStream(ba);
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.