Lines Matching refs:samples

61     // Move samples from one array to another.  May move samples down within an array, but not up.
74 // Scale the samples by the factor.
76 short samples[],
86 int value = (samples[xSample]*fixedPointVolume) >> 12;
92 samples[xSample] = (short)value;
220 // Set the sample rate of the stream. This will cause samples buffered in the stream to be lost.
233 // Set the num channels of the stream. This will cause samples buffered in the stream to be lost.
260 // Add the input samples to the input buffer.
262 float samples[],
271 inputBuffer[xBuffer++] = (short)(samples[xSample]*32767.0f);
276 // Add the input samples to the input buffer.
278 short samples[],
285 move(inputBuffer, numInputSamples, samples, 0, numSamples);
289 // Add the input samples to the input buffer.
291 byte samples[],
299 sample = (short)((samples[xSample] & 0xff) - 128); // Convert from unsigned to signed
305 // Add the input samples to the input buffer. They must be 16-bit little-endian encoded in a byte array.
322 // Remove input samples that we have already processed.
334 short samples[],
339 move(outputBuffer, numOutputSamples, samples, position, numSamples);
343 // Just copy from the input buffer to the output buffer. Return num samples copied.
360 float samples[],
374 samples[xSample++] = (outputBuffer[xSample])/32767.0f;
384 short samples[],
397 move(samples, 0, outputBuffer, 0, numSamples);
406 byte samples[],
420 samples[xSample] = (byte)((outputBuffer[xSample] >> 8) + 128);
471 // Throw away any extra samples we generated due to the silence we added.
481 // Return the number of samples in the output buffer
487 // If skip is greater than one, average skip samples together and write them to
491 short samples[],
503 value += samples[position + i*samplesPerValue + j];
514 short samples[],
528 short sVal = samples[position + i];
529 short pVal = samples[position + period + i];
532 /* Note that the highest number of samples we add into diff will be less
533 than 256, since we skip samples. Thus, diff is a 24 bit number, and
582 short samples[],
595 period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod, minDiff, maxDiff);
597 downSampleInput(samples, position, skip);
611 period = findPitchPeriodInRange(samples, position, minP, maxP, minDiff, maxDiff);
613 downSampleInput(samples, position, 1);
687 // Just move the new samples in the output buffer to the pitch buffer
702 // Remove processed samples from the pitch buffer.
714 // past samples to determine pitch, rather than future.
804 // Skip over a pitch period, and copy period/speed samples to the output
806 short samples[],
820 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples, samples, position,
821 samples, position + period);
828 short samples[],
842 move(outputBuffer, numOutputSamples, samples, position, period);
843 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples + period, samples,
844 position + period, samples, position);
910 float samples[],
913 addFloatSamplesToInputBuffer(samples, numSamples);
919 short samples[],
922 addShortSamplesToInputBuffer(samples, numSamples);
929 byte samples[],
932 addUnsignedByteSamplesToInputBuffer(samples, numSamples);
947 float samples[],
964 stream.writeFloatToStream(samples, numSamples);
967 stream.readFloatFromStream(samples, numSamples);
973 short samples[],
990 stream.writeShortToStream(samples, numSamples);
993 stream.readShortFromStream(samples, numSamples);