Lines Matching refs:samples
67 // The first 100ms is the place where samples get mixed. The rest is the real
84 // + If we cannot get enough CPU, we drop samples and simulate packet loss.
316 int16_t samples[mSampleCount];
327 samples[i] = sample;
334 memset(samples, 0, sizeof(samples));
343 send(mSocket, samples, sizeof(samples), MSG_DONTWAIT);
351 int length = mCodec->encode(&buffer[3], samples);
375 // Throw away outdated samples.
403 int16_t samples[count];
406 count = recv(mSocket, samples, sizeof(samples),
432 length = mCodec->decode(samples, count, &buffer[offset], length);
463 mBuffer[tail & mBufferMask] = samples[i];