Home
last modified time | relevance | path

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

/external/sonic/
DSonic.java36 private int numPitchSamples; field in Sonic
462 …int expectedOutputSamples = numOutputSamples + (int)((remainingSamples/s + numPitchSamples)/r + 0.… in flushStream()
478 numPitchSamples = 0; in flushStream()
693 if(numPitchSamples + numSamples > pitchBufferSize) { in moveNewSamplesToPitchBuffer()
697 move(pitchBuffer, numPitchSamples, outputBuffer, originalNumOutputSamples, numSamples); in moveNewSamplesToPitchBuffer()
699 numPitchSamples += numSamples; in moveNewSamplesToPitchBuffer()
709 move(pitchBuffer, 0, pitchBuffer, numSamples, numPitchSamples - numSamples); in removePitchSamples()
710 numPitchSamples -= numSamples; in removePitchSamples()
725 while(numPitchSamples - position >= maxRequired) { in adjustPitch()
780 for(position = 0; position < numPitchSamples - 1; position++) { in adjustRate()
Dsonic.c40 int numPitchSamples; member
554 (int)((remainingSamples/speed + stream->numPitchSamples)/rate + 0.5f); in sonicFlushStream()
573 stream->numPitchSamples = 0; in sonicFlushStream()
805 if(stream->numPitchSamples + numSamples > stream->pitchBufferSize) { in moveNewSamplesToPitchBuffer()
813 memcpy(stream->pitchBuffer + stream->numPitchSamples*numChannels, in moveNewSamplesToPitchBuffer()
817 stream->numPitchSamples += numSamples; in moveNewSamplesToPitchBuffer()
832 if(numSamples != stream->numPitchSamples) { in removePitchSamples()
833 memmove(stream->pitchBuffer, source, (stream->numPitchSamples - in removePitchSamples()
836 stream->numPitchSamples -= numSamples; in removePitchSamples()
857 while(stream->numPitchSamples - position >= stream->maxRequired) { in adjustPitch()
[all …]