* But in any case, the following loop encodes the samples we have
* into packets.
*/
while (numSamplesConsumed < outSamples.getNumSamples())
{
retval = oc.encodeAudio(oPacket, outSamples, numSamplesConsumed);
if (retval <= 0)
throw new RuntimeException("Could not encode any audio: "
+ retval);
/**
* Increment the number of samples consumed, so that the next time