@Override
    public void run() {
        System.out.println("asa2");
        byte[] data=new byte[1024];
        BufferedInputStream playbackInputStream = null;
        try {
            playbackInputStream=new BufferedInputStream(new AudioInputStream(socket.getInputStream(),format,2147483647));
        } catch (IOException ex) {
            Logger.getLogger(tranSound.class.getName()).log(Level.SEVERE, null, ex);
        }
        int numBytesRead=0;  
        try {
            listen.start();
        } catch (Exception ex) {
            Logger.getLogger(revSound.class.getName()).log(Level.SEVERE, null, ex);
        }
        while(thread!=null)
        {
            try {
                numBytesRead=playbackInputStream.read(data);
                listen.write(data,0,numBytesRead);
            } catch (IOException ex) {
                break;
            }
        }
        try {
            listen.close();
        } catch (IOException ex) {
            Logger.getLogger(revSound.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }