• Home
  • Raw
  • Download

Lines Matching refs:stream

89     sonicStream stream)  in sonicGetSpeed()  argument
91 return stream->speed; in sonicGetSpeed()
96 sonicStream stream, in sonicSetSpeed() argument
99 stream->speed = speed; in sonicSetSpeed()
104 sonicStream stream) in sonicGetPitch() argument
106 return stream->pitch; in sonicGetPitch()
111 sonicStream stream, in sonicSetPitch() argument
114 stream->pitch = pitch; in sonicSetPitch()
119 sonicStream stream) in sonicGetRate() argument
121 return stream->rate; in sonicGetRate()
126 sonicStream stream, in sonicSetRate() argument
129 stream->rate = rate; in sonicSetRate()
131 stream->oldRatePosition = 0; in sonicSetRate()
132 stream->newRatePosition = 0; in sonicSetRate()
137 sonicStream stream) in sonicGetChordPitch() argument
139 return stream->useChordPitch; in sonicGetChordPitch()
144 sonicStream stream, in sonicSetChordPitch() argument
147 stream->useChordPitch = useChordPitch; in sonicSetChordPitch()
152 sonicStream stream) in sonicGetQuality() argument
154 return stream->quality; in sonicGetQuality()
159 sonicStream stream, in sonicSetQuality() argument
162 stream->quality = quality; in sonicSetQuality()
167 sonicStream stream) in sonicGetVolume() argument
169 return stream->volume; in sonicGetVolume()
174 sonicStream stream, in sonicSetVolume() argument
177 stream->volume = volume; in sonicSetVolume()
182 sonicStream stream) in freeStreamBuffers() argument
184 if(stream->inputBuffer != NULL) { in freeStreamBuffers()
185 free(stream->inputBuffer); in freeStreamBuffers()
187 if(stream->outputBuffer != NULL) { in freeStreamBuffers()
188 free(stream->outputBuffer); in freeStreamBuffers()
190 if(stream->pitchBuffer != NULL) { in freeStreamBuffers()
191 free(stream->pitchBuffer); in freeStreamBuffers()
193 if(stream->downSampleBuffer != NULL) { in freeStreamBuffers()
194 free(stream->downSampleBuffer); in freeStreamBuffers()
200 sonicStream stream) in sonicDestroyStream() argument
202 freeStreamBuffers(stream); in sonicDestroyStream()
203 free(stream); in sonicDestroyStream()
208 sonicStream stream, in allocateStreamBuffers() argument
216 stream->inputBufferSize = maxRequired; in allocateStreamBuffers()
217 stream->inputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
218 if(stream->inputBuffer == NULL) { in allocateStreamBuffers()
219 sonicDestroyStream(stream); in allocateStreamBuffers()
222 stream->outputBufferSize = maxRequired; in allocateStreamBuffers()
223 stream->outputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
224 if(stream->outputBuffer == NULL) { in allocateStreamBuffers()
225 sonicDestroyStream(stream); in allocateStreamBuffers()
228 stream->pitchBufferSize = maxRequired; in allocateStreamBuffers()
229 stream->pitchBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
230 if(stream->pitchBuffer == NULL) { in allocateStreamBuffers()
231 sonicDestroyStream(stream); in allocateStreamBuffers()
234 stream->downSampleBuffer = (short *)calloc(maxRequired, sizeof(short)); in allocateStreamBuffers()
235 if(stream->downSampleBuffer == NULL) { in allocateStreamBuffers()
236 sonicDestroyStream(stream); in allocateStreamBuffers()
239 stream->sampleRate = sampleRate; in allocateStreamBuffers()
240 stream->numChannels = numChannels; in allocateStreamBuffers()
241 stream->oldRatePosition = 0; in allocateStreamBuffers()
242 stream->newRatePosition = 0; in allocateStreamBuffers()
243 stream->minPeriod = minPeriod; in allocateStreamBuffers()
244 stream->maxPeriod = maxPeriod; in allocateStreamBuffers()
245 stream->maxRequired = maxRequired; in allocateStreamBuffers()
246 stream->prevPeriod = 0; in allocateStreamBuffers()
256 sonicStream stream = (sonicStream)calloc(1, sizeof(struct sonicStreamStruct)); in sonicCreateStream() local
258 if(stream == NULL) { in sonicCreateStream()
261 if(!allocateStreamBuffers(stream, sampleRate, numChannels)) { in sonicCreateStream()
264 stream->speed = 1.0f; in sonicCreateStream()
265 stream->pitch = 1.0f; in sonicCreateStream()
266 stream->volume = 1.0f; in sonicCreateStream()
267 stream->rate = 1.0f; in sonicCreateStream()
268 stream->oldRatePosition = 0; in sonicCreateStream()
269 stream->newRatePosition = 0; in sonicCreateStream()
270 stream->useChordPitch = 0; in sonicCreateStream()
271 stream->quality = 0; in sonicCreateStream()
272 return stream; in sonicCreateStream()
277 sonicStream stream) in sonicGetSampleRate() argument
279 return stream->sampleRate; in sonicGetSampleRate()
285 sonicStream stream, in sonicSetSampleRate() argument
288 freeStreamBuffers(stream); in sonicSetSampleRate()
289 allocateStreamBuffers(stream, sampleRate, stream->numChannels); in sonicSetSampleRate()
294 sonicStream stream) in sonicGetNumChannels() argument
296 return stream->numChannels; in sonicGetNumChannels()
302 sonicStream stream, in sonicSetNumChannels() argument
305 freeStreamBuffers(stream); in sonicSetNumChannels()
306 allocateStreamBuffers(stream, stream->sampleRate, numChannels); in sonicSetNumChannels()
311 sonicStream stream, in enlargeOutputBufferIfNeeded() argument
314 if(stream->numOutputSamples + numSamples > stream->outputBufferSize) { in enlargeOutputBufferIfNeeded()
315 stream->outputBufferSize += (stream->outputBufferSize >> 1) + numSamples; in enlargeOutputBufferIfNeeded()
316 stream->outputBuffer = (short *)realloc(stream->outputBuffer, in enlargeOutputBufferIfNeeded()
317 stream->outputBufferSize*sizeof(short)*stream->numChannels); in enlargeOutputBufferIfNeeded()
318 if(stream->outputBuffer == NULL) { in enlargeOutputBufferIfNeeded()
327 sonicStream stream, in enlargeInputBufferIfNeeded() argument
330 if(stream->numInputSamples + numSamples > stream->inputBufferSize) { in enlargeInputBufferIfNeeded()
331 stream->inputBufferSize += (stream->inputBufferSize >> 1) + numSamples; in enlargeInputBufferIfNeeded()
332 stream->inputBuffer = (short *)realloc(stream->inputBuffer, in enlargeInputBufferIfNeeded()
333 stream->inputBufferSize*sizeof(short)*stream->numChannels); in enlargeInputBufferIfNeeded()
334 if(stream->inputBuffer == NULL) { in enlargeInputBufferIfNeeded()
343 sonicStream stream, in addFloatSamplesToInputBuffer() argument
348 int count = numSamples*stream->numChannels; in addFloatSamplesToInputBuffer()
353 if(!enlargeInputBufferIfNeeded(stream, numSamples)) { in addFloatSamplesToInputBuffer()
356 buffer = stream->inputBuffer + stream->numInputSamples*stream->numChannels; in addFloatSamplesToInputBuffer()
360 stream->numInputSamples += numSamples; in addFloatSamplesToInputBuffer()
366 sonicStream stream, in addShortSamplesToInputBuffer() argument
373 if(!enlargeInputBufferIfNeeded(stream, numSamples)) { in addShortSamplesToInputBuffer()
376 memcpy(stream->inputBuffer + stream->numInputSamples*stream->numChannels, samples, in addShortSamplesToInputBuffer()
377 numSamples*sizeof(short)*stream->numChannels); in addShortSamplesToInputBuffer()
378 stream->numInputSamples += numSamples; in addShortSamplesToInputBuffer()
384 sonicStream stream, in addUnsignedCharSamplesToInputBuffer() argument
389 int count = numSamples*stream->numChannels; in addUnsignedCharSamplesToInputBuffer()
394 if(!enlargeInputBufferIfNeeded(stream, numSamples)) { in addUnsignedCharSamplesToInputBuffer()
397 buffer = stream->inputBuffer + stream->numInputSamples*stream->numChannels; in addUnsignedCharSamplesToInputBuffer()
401 stream->numInputSamples += numSamples; in addUnsignedCharSamplesToInputBuffer()
407 sonicStream stream, in removeInputSamples() argument
410 int remainingSamples = stream->numInputSamples - position; in removeInputSamples()
413 memmove(stream->inputBuffer, stream->inputBuffer + position*stream->numChannels, in removeInputSamples()
414 remainingSamples*sizeof(short)*stream->numChannels); in removeInputSamples()
416 stream->numInputSamples = remainingSamples; in removeInputSamples()
421 sonicStream stream, in copyToOutput() argument
425 if(!enlargeOutputBufferIfNeeded(stream, numSamples)) { in copyToOutput()
428 memcpy(stream->outputBuffer + stream->numOutputSamples*stream->numChannels, in copyToOutput()
429 samples, numSamples*sizeof(short)*stream->numChannels); in copyToOutput()
430 stream->numOutputSamples += numSamples; in copyToOutput()
437 sonicStream stream, in copyInputToOutput() argument
440 int numSamples = stream->remainingInputToCopy; in copyInputToOutput()
442 if(numSamples > stream->maxRequired) { in copyInputToOutput()
443 numSamples = stream->maxRequired; in copyInputToOutput()
445 if(!copyToOutput(stream, stream->inputBuffer + position*stream->numChannels, in copyInputToOutput()
449 stream->remainingInputToCopy -= numSamples; in copyInputToOutput()
456 sonicStream stream, in sonicReadFloatFromStream() argument
460 int numSamples = stream->numOutputSamples; in sonicReadFloatFromStream()
472 buffer = stream->outputBuffer; in sonicReadFloatFromStream()
473 count = numSamples*stream->numChannels; in sonicReadFloatFromStream()
478 memmove(stream->outputBuffer, stream->outputBuffer + numSamples*stream->numChannels, in sonicReadFloatFromStream()
479 remainingSamples*sizeof(short)*stream->numChannels); in sonicReadFloatFromStream()
481 stream->numOutputSamples = remainingSamples; in sonicReadFloatFromStream()
488 sonicStream stream, in sonicReadShortFromStream() argument
492 int numSamples = stream->numOutputSamples; in sonicReadShortFromStream()
502 memcpy(samples, stream->outputBuffer, numSamples*sizeof(short)*stream->numChannels); in sonicReadShortFromStream()
504 memmove(stream->outputBuffer, stream->outputBuffer + numSamples*stream->numChannels, in sonicReadShortFromStream()
505 remainingSamples*sizeof(short)*stream->numChannels); in sonicReadShortFromStream()
507 stream->numOutputSamples = remainingSamples; in sonicReadShortFromStream()
514 sonicStream stream, in sonicReadUnsignedCharFromStream() argument
518 int numSamples = stream->numOutputSamples; in sonicReadUnsignedCharFromStream()
530 buffer = stream->outputBuffer; in sonicReadUnsignedCharFromStream()
531 count = numSamples*stream->numChannels; in sonicReadUnsignedCharFromStream()
536 memmove(stream->outputBuffer, stream->outputBuffer + numSamples*stream->numChannels, in sonicReadUnsignedCharFromStream()
537 remainingSamples*sizeof(short)*stream->numChannels); in sonicReadUnsignedCharFromStream()
539 stream->numOutputSamples = remainingSamples; in sonicReadUnsignedCharFromStream()
547 sonicStream stream) in sonicFlushStream() argument
549 int maxRequired = stream->maxRequired; in sonicFlushStream()
550 int remainingSamples = stream->numInputSamples; in sonicFlushStream()
551 float speed = stream->speed/stream->pitch; in sonicFlushStream()
552 float rate = stream->rate*stream->pitch; in sonicFlushStream()
553 int expectedOutputSamples = stream->numOutputSamples + in sonicFlushStream()
554 (int)((remainingSamples/speed + stream->numPitchSamples)/rate + 0.5f); in sonicFlushStream()
557 if(!enlargeInputBufferIfNeeded(stream, remainingSamples + 2*maxRequired)) { in sonicFlushStream()
560 memset(stream->inputBuffer + remainingSamples*stream->numChannels, 0, in sonicFlushStream()
561 2*maxRequired*sizeof(short)*stream->numChannels); in sonicFlushStream()
562 stream->numInputSamples += 2*maxRequired; in sonicFlushStream()
563 if(!sonicWriteShortToStream(stream, NULL, 0)) { in sonicFlushStream()
567 if(stream->numOutputSamples > expectedOutputSamples) { in sonicFlushStream()
568 stream->numOutputSamples = expectedOutputSamples; in sonicFlushStream()
571 stream->numInputSamples = 0; in sonicFlushStream()
572 stream->remainingInputToCopy = 0; in sonicFlushStream()
573 stream->numPitchSamples = 0; in sonicFlushStream()
579 sonicStream stream) in sonicSamplesAvailable() argument
581 return stream->numOutputSamples; in sonicSamplesAvailable()
588 sonicStream stream, in downSampleInput() argument
592 int numSamples = stream->maxRequired/skip; in downSampleInput()
593 int samplesPerValue = stream->numChannels*skip; in downSampleInput()
596 short *downSamples = stream->downSampleBuffer; in downSampleInput()
652 sonicStream stream, in prevPeriodBetter() argument
658 if(minDiff == 0 || stream->prevPeriod == 0) { in prevPeriodBetter()
666 if(minDiff*2 <= stream->prevMinDiff*3) { in prevPeriodBetter()
671 if(minDiff <= stream->prevMinDiff) { in prevPeriodBetter()
683 sonicStream stream, in findPitchPeriod() argument
687 int minPeriod = stream->minPeriod; in findPitchPeriod()
688 int maxPeriod = stream->maxPeriod; in findPitchPeriod()
689 int sampleRate = stream->sampleRate; in findPitchPeriod()
694 if(sampleRate > SONIC_AMDF_FREQ && stream->quality == 0) { in findPitchPeriod()
697 if(stream->numChannels == 1 && skip == 1) { in findPitchPeriod()
700 downSampleInput(stream, samples, skip); in findPitchPeriod()
701 period = findPitchPeriodInRange(stream->downSampleBuffer, minPeriod/skip, in findPitchPeriod()
707 if(minPeriod < stream->minPeriod) { in findPitchPeriod()
708 minPeriod = stream->minPeriod; in findPitchPeriod()
710 if(maxPeriod > stream->maxPeriod) { in findPitchPeriod()
711 maxPeriod = stream->maxPeriod; in findPitchPeriod()
713 if(stream->numChannels == 1) { in findPitchPeriod()
717 downSampleInput(stream, samples, 1); in findPitchPeriod()
718 period = findPitchPeriodInRange(stream->downSampleBuffer, minPeriod, in findPitchPeriod()
723 if(prevPeriodBetter(stream, period, minDiff, maxDiff, preferNewPeriod)) { in findPitchPeriod()
724 retPeriod = stream->prevPeriod; in findPitchPeriod()
728 stream->prevMinDiff = minDiff; in findPitchPeriod()
729 stream->prevPeriod = period; in findPitchPeriod()
799 sonicStream stream, in moveNewSamplesToPitchBuffer() argument
802 int numSamples = stream->numOutputSamples - originalNumOutputSamples; in moveNewSamplesToPitchBuffer()
803 int numChannels = stream->numChannels; in moveNewSamplesToPitchBuffer()
805 if(stream->numPitchSamples + numSamples > stream->pitchBufferSize) { in moveNewSamplesToPitchBuffer()
806 stream->pitchBufferSize += (stream->pitchBufferSize >> 1) + numSamples; in moveNewSamplesToPitchBuffer()
807 stream->pitchBuffer = (short *)realloc(stream->pitchBuffer, in moveNewSamplesToPitchBuffer()
808 stream->pitchBufferSize*sizeof(short)*numChannels); in moveNewSamplesToPitchBuffer()
809 if(stream->pitchBuffer == NULL) { in moveNewSamplesToPitchBuffer()
813 memcpy(stream->pitchBuffer + stream->numPitchSamples*numChannels, in moveNewSamplesToPitchBuffer()
814 stream->outputBuffer + originalNumOutputSamples*numChannels, in moveNewSamplesToPitchBuffer()
816 stream->numOutputSamples = originalNumOutputSamples; in moveNewSamplesToPitchBuffer()
817 stream->numPitchSamples += numSamples; in moveNewSamplesToPitchBuffer()
823 sonicStream stream, in removePitchSamples() argument
826 int numChannels = stream->numChannels; in removePitchSamples()
827 short *source = stream->pitchBuffer + numSamples*numChannels; in removePitchSamples()
832 if(numSamples != stream->numPitchSamples) { in removePitchSamples()
833 memmove(stream->pitchBuffer, source, (stream->numPitchSamples - in removePitchSamples()
836 stream->numPitchSamples -= numSamples; in removePitchSamples()
842 sonicStream stream, in adjustPitch() argument
845 float pitch = stream->pitch; in adjustPitch()
846 int numChannels = stream->numChannels; in adjustPitch()
851 if(stream->numOutputSamples == originalNumOutputSamples) { in adjustPitch()
854 if(!moveNewSamplesToPitchBuffer(stream, originalNumOutputSamples)) { in adjustPitch()
857 while(stream->numPitchSamples - position >= stream->maxRequired) { in adjustPitch()
858 period = findPitchPeriod(stream, stream->pitchBuffer + position*numChannels, 0); in adjustPitch()
860 if(!enlargeOutputBufferIfNeeded(stream, newPeriod)) { in adjustPitch()
863 out = stream->outputBuffer + stream->numOutputSamples*numChannels; in adjustPitch()
865 rampDown = stream->pitchBuffer + position*numChannels; in adjustPitch()
866 rampUp = stream->pitchBuffer + (position + period - newPeriod)*numChannels; in adjustPitch()
869 rampDown = stream->pitchBuffer + position*numChannels; in adjustPitch()
870 rampUp = stream->pitchBuffer + position*numChannels; in adjustPitch()
874 stream->numOutputSamples += newPeriod; in adjustPitch()
877 removePitchSamples(stream, position); in adjustPitch()
883 sonicStream stream, in interpolate() argument
889 short right = in[stream->numChannels]; in interpolate()
890 int position = stream->newRatePosition*oldSampleRate; in interpolate()
891 int leftPosition = stream->oldRatePosition*newSampleRate; in interpolate()
892 int rightPosition = (stream->oldRatePosition + 1)*newSampleRate; in interpolate()
901 sonicStream stream, in adjustRate() argument
905 int newSampleRate = stream->sampleRate/rate; in adjustRate()
906 int oldSampleRate = stream->sampleRate; in adjustRate()
907 int numChannels = stream->numChannels; in adjustRate()
917 if(stream->numOutputSamples == originalNumOutputSamples) { in adjustRate()
920 if(!moveNewSamplesToPitchBuffer(stream, originalNumOutputSamples)) { in adjustRate()
924 for(position = 0; position < stream->numPitchSamples - 1; position++) { in adjustRate()
925 while((stream->oldRatePosition + 1)*newSampleRate > in adjustRate()
926 stream->newRatePosition*oldSampleRate) { in adjustRate()
927 if(!enlargeOutputBufferIfNeeded(stream, 1)) { in adjustRate()
930 out = stream->outputBuffer + stream->numOutputSamples*numChannels; in adjustRate()
931 in = stream->pitchBuffer + position; in adjustRate()
933 *out++ = interpolate(stream, in, oldSampleRate, newSampleRate); in adjustRate()
936 stream->newRatePosition++; in adjustRate()
937 stream->numOutputSamples++; in adjustRate()
939 stream->oldRatePosition++; in adjustRate()
940 if(stream->oldRatePosition == oldSampleRate) { in adjustRate()
941 stream->oldRatePosition = 0; in adjustRate()
942 if(stream->newRatePosition != newSampleRate) { in adjustRate()
947 stream->newRatePosition = 0; in adjustRate()
950 removePitchSamples(stream, position); in adjustRate()
957 sonicStream stream, in skipPitchPeriod() argument
963 int numChannels = stream->numChannels; in skipPitchPeriod()
969 stream->remainingInputToCopy = period*(2.0f - speed)/(speed - 1.0f); in skipPitchPeriod()
971 if(!enlargeOutputBufferIfNeeded(stream, newSamples)) { in skipPitchPeriod()
974 overlapAdd(newSamples, numChannels, stream->outputBuffer + in skipPitchPeriod()
975 stream->numOutputSamples*numChannels, samples, samples + period*numChannels); in skipPitchPeriod()
976 stream->numOutputSamples += newSamples; in skipPitchPeriod()
982 sonicStream stream, in insertPitchPeriod() argument
989 int numChannels = stream->numChannels; in insertPitchPeriod()
995 stream->remainingInputToCopy = period*(2.0f*speed - 1.0f)/(1.0f - speed); in insertPitchPeriod()
997 if(!enlargeOutputBufferIfNeeded(stream, period + newSamples)) { in insertPitchPeriod()
1000 out = stream->outputBuffer + stream->numOutputSamples*numChannels; in insertPitchPeriod()
1002 out = stream->outputBuffer + (stream->numOutputSamples + period)*numChannels; in insertPitchPeriod()
1004 stream->numOutputSamples += period + newSamples; in insertPitchPeriod()
1011 sonicStream stream, in changeSpeed() argument
1015 int numSamples = stream->numInputSamples; in changeSpeed()
1017 int maxRequired = stream->maxRequired; in changeSpeed()
1019 if(stream->numInputSamples < maxRequired) { in changeSpeed()
1023 if(stream->remainingInputToCopy > 0) { in changeSpeed()
1024 newSamples = copyInputToOutput(stream, position); in changeSpeed()
1027 samples = stream->inputBuffer + position*stream->numChannels; in changeSpeed()
1028 period = findPitchPeriod(stream, samples, 1); in changeSpeed()
1030 newSamples = skipPitchPeriod(stream, samples, speed, period); in changeSpeed()
1033 newSamples = insertPitchPeriod(stream, samples, speed, period); in changeSpeed()
1041 removeInputSamples(stream, position); in changeSpeed()
1048 sonicStream stream) in processStreamInput() argument
1050 int originalNumOutputSamples = stream->numOutputSamples; in processStreamInput()
1051 float speed = stream->speed/stream->pitch; in processStreamInput()
1052 float rate = stream->rate; in processStreamInput()
1054 if(!stream->useChordPitch) { in processStreamInput()
1055 rate *= stream->pitch; in processStreamInput()
1058 changeSpeed(stream, speed); in processStreamInput()
1060 if(!copyToOutput(stream, stream->inputBuffer, stream->numInputSamples)) { in processStreamInput()
1063 stream->numInputSamples = 0; in processStreamInput()
1065 if(stream->useChordPitch) { in processStreamInput()
1066 if(stream->pitch != 1.0f) { in processStreamInput()
1067 if(!adjustPitch(stream, originalNumOutputSamples)) { in processStreamInput()
1072 if(!adjustRate(stream, rate, originalNumOutputSamples)) { in processStreamInput()
1076 if(stream->volume != 1.0f) { in processStreamInput()
1078 scaleSamples(stream->outputBuffer + originalNumOutputSamples*stream->numChannels, in processStreamInput()
1079 (stream->numOutputSamples - originalNumOutputSamples)*stream->numChannels, in processStreamInput()
1080 stream->volume); in processStreamInput()
1087 sonicStream stream, in sonicWriteFloatToStream() argument
1091 if(!addFloatSamplesToInputBuffer(stream, samples, numSamples)) { in sonicWriteFloatToStream()
1094 return processStreamInput(stream); in sonicWriteFloatToStream()
1100 sonicStream stream, in sonicWriteShortToStream() argument
1104 if(!addShortSamplesToInputBuffer(stream, samples, numSamples)) { in sonicWriteShortToStream()
1107 return processStreamInput(stream); in sonicWriteShortToStream()
1113 sonicStream stream, in sonicWriteUnsignedCharToStream() argument
1117 if(!addUnsignedCharSamplesToInputBuffer(stream, samples, numSamples)) { in sonicWriteUnsignedCharToStream()
1120 return processStreamInput(stream); in sonicWriteUnsignedCharToStream()
1135 sonicStream stream = sonicCreateStream(sampleRate, numChannels); in sonicChangeFloatSpeed() local
1137 sonicSetSpeed(stream, speed); in sonicChangeFloatSpeed()
1138 sonicSetPitch(stream, pitch); in sonicChangeFloatSpeed()
1139 sonicSetRate(stream, rate); in sonicChangeFloatSpeed()
1140 sonicSetVolume(stream, volume); in sonicChangeFloatSpeed()
1141 sonicSetChordPitch(stream, useChordPitch); in sonicChangeFloatSpeed()
1142 sonicWriteFloatToStream(stream, samples, numSamples); in sonicChangeFloatSpeed()
1143 sonicFlushStream(stream); in sonicChangeFloatSpeed()
1144 numSamples = sonicSamplesAvailable(stream); in sonicChangeFloatSpeed()
1145 sonicReadFloatFromStream(stream, samples, numSamples); in sonicChangeFloatSpeed()
1146 sonicDestroyStream(stream); in sonicChangeFloatSpeed()
1162 sonicStream stream = sonicCreateStream(sampleRate, numChannels); in sonicChangeShortSpeed() local
1164 sonicSetSpeed(stream, speed); in sonicChangeShortSpeed()
1165 sonicSetPitch(stream, pitch); in sonicChangeShortSpeed()
1166 sonicSetRate(stream, rate); in sonicChangeShortSpeed()
1167 sonicSetVolume(stream, volume); in sonicChangeShortSpeed()
1168 sonicSetChordPitch(stream, useChordPitch); in sonicChangeShortSpeed()
1169 sonicWriteShortToStream(stream, samples, numSamples); in sonicChangeShortSpeed()
1170 sonicFlushStream(stream); in sonicChangeShortSpeed()
1171 numSamples = sonicSamplesAvailable(stream); in sonicChangeShortSpeed()
1172 sonicReadShortFromStream(stream, samples, numSamples); in sonicChangeShortSpeed()
1173 sonicDestroyStream(stream); in sonicChangeShortSpeed()