Hello * Could anybody please tell me why do I get this Exception?: "Warning: java.lang.IllegalArgumentException: Illegal request to write non-integral number of frames (198 bytes)" This exception occur when I make a read(byte b, int off, int len) but only if len==88204. Then the method can only read 198 bytes and this exception is thrown. It doesn't happen when len == 5513. This argument "len" is passed from a class from the API (player) and I can't control it. Can anybody help?
Well so much for that theory. Found sourceDataLine.available() and displayed it as REMAINDER. In PlayThread - cnt= 10000 remainer= 8192 In PlayThread - cnt= 10000 remainer= 6192 In PlayThread - cnt= 10000 remainer= 188 In PlayThread - cnt= 10000 remainer= 2176 In PlayThread - cnt= 8024 remainer= 168
The full buffer is not used every time and the remaining bytes vary without seeming logic.