Possible Duplicate:
byte array to short array and back again in java
the encodeAudio()
method in Xuggler has the following parameters:
Using
TargetDataLine
from javax.sound.sampled
I can read the data into a byte[]
array
byte[] tempBuffer = new byte[10000];
fromMic.read(tempBuffer,0,tempBuffer.length);
But the problem is that the samples
argument needs short[]