Lines Matching refs:samples
76 short samples[], in scaleSamples() argument
86 int value = (samples[xSample]*fixedPointVolume) >> 12; in scaleSamples()
92 samples[xSample] = (short)value; in scaleSamples()
262 float samples[], in addFloatSamplesToInputBuffer() argument
271 inputBuffer[xBuffer++] = (short)(samples[xSample]*32767.0f); in addFloatSamplesToInputBuffer()
278 short samples[], in addShortSamplesToInputBuffer() argument
285 move(inputBuffer, numInputSamples, samples, 0, numSamples); in addShortSamplesToInputBuffer()
291 byte samples[], in addUnsignedByteSamplesToInputBuffer() argument
299 sample = (short)((samples[xSample] & 0xff) - 128); // Convert from unsigned to signed in addUnsignedByteSamplesToInputBuffer()
334 short samples[], in copyToOutput() argument
339 move(outputBuffer, numOutputSamples, samples, position, numSamples); in copyToOutput()
360 float samples[], in readFloatFromStream() argument
374 samples[xSample++] = (outputBuffer[xSample])/32767.0f; in readFloatFromStream()
384 short samples[], in readShortFromStream() argument
397 move(samples, 0, outputBuffer, 0, numSamples); in readShortFromStream()
406 byte samples[], in readUnsignedByteFromStream() argument
420 samples[xSample] = (byte)((outputBuffer[xSample] >> 8) + 128); in readUnsignedByteFromStream()
491 short samples[], in downSampleInput() argument
503 value += samples[position + i*samplesPerValue + j]; in downSampleInput()
514 short samples[], in findPitchPeriodInRange() argument
528 short sVal = samples[position + i]; in findPitchPeriodInRange()
529 short pVal = samples[position + period + i]; in findPitchPeriodInRange()
582 short samples[], in findPitchPeriod() argument
595 … period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod, minDiff, maxDiff); in findPitchPeriod()
597 downSampleInput(samples, position, skip); in findPitchPeriod()
611 … period = findPitchPeriodInRange(samples, position, minP, maxP, minDiff, maxDiff); in findPitchPeriod()
613 downSampleInput(samples, position, 1); in findPitchPeriod()
806 short samples[], in skipPitchPeriod() argument
820 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples, samples, position, in skipPitchPeriod()
821 samples, position + period); in skipPitchPeriod()
828 short samples[], in insertPitchPeriod() argument
842 move(outputBuffer, numOutputSamples, samples, position, period); in insertPitchPeriod()
843 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples + period, samples, in insertPitchPeriod()
844 position + period, samples, position); in insertPitchPeriod()
910 float samples[], in writeFloatToStream() argument
913 addFloatSamplesToInputBuffer(samples, numSamples); in writeFloatToStream()
919 short samples[], in writeShortToStream() argument
922 addShortSamplesToInputBuffer(samples, numSamples); in writeShortToStream()
929 byte samples[], in writeUnsignedByteToStream() argument
932 addUnsignedByteSamplesToInputBuffer(samples, numSamples); in writeUnsignedByteToStream()
947 float samples[], in changeFloatSpeed() argument
964 stream.writeFloatToStream(samples, numSamples); in changeFloatSpeed()
967 stream.readFloatFromStream(samples, numSamples); in changeFloatSpeed()
973 short samples[], in sonicChangeShortSpeed() argument
990 stream.writeShortToStream(samples, numSamples); in sonicChangeShortSpeed()
993 stream.readShortFromStream(samples, numSamples); in sonicChangeShortSpeed()