public int read(byte[] b, int off, int len) throws IOException {
		int r, rema = len;
		while(rema > 0) {
			if((r = readAudioPacket(b, off, rema)) == -1) {
				if(len == rema)
					return -1;
				break;
			}
			off += r;
			rema -= r;
		}
		return len - rema;
	}