return (data.length) / (rate*2);
return (float)(data.length) / (float)(rate*2);
	private float getPlayTime(byte[] data, AudioFormat format, int rate) {//		get channels		if (format.getChannels() == 1) {			if (format.getSampleSizeInBits() == 8) {				return (data.length) / (rate );			} else if (format.getSampleSizeInBits() == 16) {				return (data.length) / (rate*2);			} else {				throw new JmeException("Illegal sample size");			}		} else if (format.getChannels() == 2) {			if (format.getSampleSizeInBits() == 8) {				return (data.length) / (rate *2);			} else if (format.getSampleSizeInBits() == 16) {				return (data.length) / (rate * 4);			} else {				throw new JmeException("Illegal sample size");			}		} else {			throw new JmeException("Only mono or stereo is supported");		}	}