Home
last modified time | relevance | path

Searched refs:pitchBuffer (Results 1 – 2 of 2) sorted by relevance

/external/sonic/
Dsonic.c24 short *pitchBuffer; member
190 if(stream->pitchBuffer != NULL) { in freeStreamBuffers()
191 free(stream->pitchBuffer); in freeStreamBuffers()
229 stream->pitchBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
230 if(stream->pitchBuffer == NULL) { in allocateStreamBuffers()
807 stream->pitchBuffer = (short *)realloc(stream->pitchBuffer, in moveNewSamplesToPitchBuffer()
809 if(stream->pitchBuffer == NULL) { in moveNewSamplesToPitchBuffer()
813 memcpy(stream->pitchBuffer + stream->numPitchSamples*numChannels, in moveNewSamplesToPitchBuffer()
827 short *source = stream->pitchBuffer + numSamples*numChannels; in removePitchSamples()
833 memmove(stream->pitchBuffer, source, (stream->numPitchSamples - in removePitchSamples()
[all …]
DSonic.java20 private short pitchBuffer[]; field in Sonic
189 pitchBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers()
695 pitchBuffer = resize(pitchBuffer, pitchBufferSize); in moveNewSamplesToPitchBuffer()
697 move(pitchBuffer, numPitchSamples, outputBuffer, originalNumOutputSamples, numSamples); in moveNewSamplesToPitchBuffer()
709 move(pitchBuffer, 0, pitchBuffer, numSamples, numPitchSamples - numSamples); in removePitchSamples()
726 period = findPitchPeriod(pitchBuffer, position, false); in adjustPitch()
730 overlapAdd(newPeriod, numChannels, outputBuffer, numOutputSamples, pitchBuffer, in adjustPitch()
731 position, pitchBuffer, position + period - newPeriod); in adjustPitch()
735 pitchBuffer, position, pitchBuffer, position); in adjustPitch()
784 … outputBuffer[numOutputSamples*numChannels + i] = interpolate(pitchBuffer, position + i, in adjustRate()