samples_available = samplesOutLeft;
next_timestamp += samples_available;
samplesOutLeft -= samples_available;
samples_available = samplesOutLeft;
next_timestamp += samples_available;
samplesOutLeft -= samples_available;
while(samples_available-- > 0)
*samplesOut++ = (int16_t)ntohs(*ptr++) * (0.5 / 32767);
/* We don't bother junking the packet - that'll be dealt with next time
while(samples_available-- > 0)
*samplesOut++ = (int16_t)ntohs(*ptr++) * (0.5 / 32767);
/* We don't bother junking the packet - that'll be dealt with next time
next_timestamp += samples_available;
samplesOut += samples_available;
samplesOutLeft -= samples_available;
next_timestamp += samples_available;
samplesOut += samples_available;
samplesOutLeft -= samples_available;