public void playSound(){
        audioInputStream = null;
		try
		{
			audioInputStream = clientSocket.getInputStream();
		} 
		catch (Exception e)
		{
			e.printStackTrace();
		} 
		int sampleRate = 44100;
		int sampleSizeInBits = 16;
		int channels = 1;
		boolean signed = true;
		boolean bigEndian = false;
		AudioFormat audioFormat = new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);

		DataLine.Info   info = new DataLine.Info(SourceDataLine.class,audioFormat);
		try
		{
			line = (SourceDataLine) AudioSystem.getLine(info);
			line.open(audioFormat);
		}
		catch (LineUnavailableException e)
		{
			e.printStackTrace();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		line.start();
		int     nBytesRead = 0;
		byte[]  abData = new byte[128000];
		while (nBytesRead != -1 && isPlaying)
		{
			try
			{
				nBytesRead = audioInputStream.read(abData, 0, abData.length);
			}
			catch (IOException e)
			{
				e.printStackTrace();
			}
			if (nBytesRead >= 0)
			{
				int     nBytesWritten = line.write(abData, 0, nBytesRead);
			}
		}
		line.drain();
		line.close();

    }