Home | History | Annotate | Download | only in sonic

Lines Matching refs:samples

67 /* Scale the samples by the factor. */
69 short *samples,
77 value = (*samples*fixedPointVolume) >> 12;
83 *samples++ = value;
282 /* Set the sample rate of the stream. This will cause samples buffered in the stream to
299 /* Set the num channels of the stream. This will cause samples buffered in the stream to
341 /* Add the input samples to the input buffer. */
344 float *samples,
358 *buffer++ = (*samples++)*32767.0f;
364 /* Add the input samples to the input buffer. */
367 short *samples,
376 memcpy(stream->inputBuffer + stream->numInputSamples*stream->numChannels, samples,
382 /* Add the input samples to the input buffer. */
385 unsigned char *samples,
399 *buffer++ = (*samples++ - 128) << 8;
405 /* Remove input samples that we have already processed. */
422 short *samples,
429 samples, numSamples*sizeof(short)*stream->numChannels);
457 float *samples,
475 *samples++ = (*buffer++)/32767.0f;
489 short *samples,
502 memcpy(samples, stream->outputBuffer, numSamples*sizeof(short)*stream->numChannels);
515 unsigned char *samples,
533 *samples++ = (char)((*buffer++) >> 8) + 128;
566 /* Throw away any extra samples we generated due to the silence we added */
577 /* Return the number of samples in the output buffer */
584 /* If skip is greater than one, average skip samples together and write them to
589 short *samples,
601 value += *samples++;
611 short *samples,
624 s = samples;
625 p = samples + period;
632 /* Note that the highest number of samples we add into diff will be less
633 than 256, since we skip samples. Thus, diff is a 24 bit number, and
684 short *samples,
698 period = findPitchPeriodInRange(samples, minPeriod, maxPeriod, &minDiff, &maxDiff);
700 downSampleInput(stream, samples, skip);
714 period = findPitchPeriodInRange(samples, minPeriod, maxPeriod,
717 downSampleInput(stream, samples, 1);
797 /* Just move the new samples in the output buffer to the pitch buffer */
821 /* Remove processed samples from the pitch buffer. */
840 past samples to determine pitch, rather than future. */
955 /* Skip over a pitch period, and copy period/speed samples to the output */
958 short *samples,
975 stream->numOutputSamples*numChannels, samples, samples + period*numChannels);
983 short *samples,
1001 memcpy(out, samples, period*sizeof(short)*numChannels);
1003 overlapAdd(newSamples, numChannels, out, samples + period*numChannels, samples);
1014 short *samples;
1027 samples = stream->inputBuffer + position*stream->numChannels;
1028 period = findPitchPeriod(stream, samples, 1);
1030 newSamples = skipPitchPeriod(stream, samples, speed, period);
1033 newSamples = insertPitchPeriod(stream, samples, speed, period);
1088 float *samples,
1091 if(!addFloatSamplesToInputBuffer(stream, samples, numSamples)) {
1101 short *samples,
1104 if(!addShortSamplesToInputBuffer(stream, samples, numSamples)) {
1114 unsigned char *samples,
1117 if(!addUnsignedCharSamplesToInputBuffer(stream, samples, numSamples)) {
1125 float *samples,
1142 sonicWriteFloatToStream(stream, samples, numSamples);
1145 sonicReadFloatFromStream(stream, samples, numSamples);
1152 short *samples,
1169 sonicWriteShortToStream(stream, samples, numSamples);
1172 sonicReadShortFromStream(stream, samples, numSamples);