Package javax.sound.sampled.DataLine

Examples of javax.sound.sampled.DataLine.Info


    }
   
    if (currentSound != null) {
      if (currentSound instanceof AudioInputStream) {
        try {
          Clip clip = (Clip) AudioSystem.getLine(new Info(Clip.class, ((AudioInputStream) currentSound).getFormat()));
          clip.open((AudioInputStream) currentSound);
          soundEvents.put(destination, clip);
        } catch (LineUnavailableException e1) {
          // This will happen if the underlying platform does not support sound
          // System.err.println(e1.getMessage());
View Full Code Here


    /** Initialize an audio player */
    public AudioServer(int assignedPort) throws IOException {
        super(assignedPort);
        port = assignedPort;
        info = new Info(SourceDataLine.class, AudioConfig.audioFormat);
        audioList = new LinkedList<MyAudioInputStream>();
        mixer = new AudioMixer(AudioConfig.audioFormat, audioList);
        mixerRunner = new MixingThread();
    }
View Full Code Here

     *
     * @param server server ip string
     */
    public AudioClient(String server, int port) throws IOException {
        connection = new PlayConnection(server, port);
        inputInfo = new Info(TargetDataLine.class, AudioConfig.audioFormat);
        outputInfo = new Info(SourceDataLine.class, AudioConfig.audioFormat);
    }
View Full Code Here

TOP

Related Classes of javax.sound.sampled.DataLine.Info

Copyright © 2018 www.massapicom. 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.