Home | History | Annotate | Download | only in sonic

Lines Matching defs:numChannels

30     private int numChannels;
50 newLength *= numChannels;
69 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) {
70 dest[destPos*numChannels + xSample] = source[sourcePos*numChannels + xSample];
82 int start = position*numChannels;
83 int stop = start + numSamples*numChannels;
179 int numChannels)
185 inputBuffer = new short[maxRequired*numChannels];
187 outputBuffer = new short[maxRequired*numChannels];
189 pitchBuffer = new short[maxRequired*numChannels];
192 this.numChannels = numChannels;
201 int numChannels)
203 allocateStreamBuffers(sampleRate, numChannels);
224 allocateStreamBuffers(sampleRate, numChannels);
230 return numChannels;
235 int numChannels)
237 allocateStreamBuffers(sampleRate, numChannels);
269 int xBuffer = numInputSamples*numChannels;
270 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) {
297 int xBuffer = numInputSamples*numChannels;
298 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) {
310 int numSamples = numBytes/(2*numChannels);
314 int xBuffer = numInputSamples*numChannels;
373 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) {
419 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) {
433 int maxSamples = maxBytes/(2*numChannels);
444 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) {
451 return 2*numSamples*numChannels;
466 for(int xSample = 0; xSample < 2*maxRequired*numChannels; xSample++) {
467 inputBuffer[remainingSamples*numChannels + xSample] = 0;
488 // the down-sample buffer. If numChannels is greater than one, mix the channels
496 int samplesPerValue = numChannels*skip;
499 position *= numChannels;
524 position *= numChannels;
594 if(numChannels == 1 && skip == 1) {
610 if(numChannels == 1) {
632 int numChannels,
640 for(int i = 0; i < numChannels; i++) {
641 int o = outPos*numChannels + i;
642 int u = rampUpPos*numChannels + i;
643 int d = rampDownPos*numChannels + i;
646 o += numChannels;
647 d += numChannels;
648 u += numChannels;
657 int numChannels,
666 for(int i = 0; i < numChannels; i++) {
667 int o = outPos*numChannels + i;
668 int u = rampUpPos*numChannels + i;
669 int d = rampDownPos*numChannels + i;
673 d += numChannels;
676 d += numChannels;
677 u += numChannels;
680 u += numChannels;
682 o += numChannels;
730 overlapAdd(newPeriod, numChannels, outputBuffer, numOutputSamples, pitchBuffer,
734 overlapAddWithSeparation(period, numChannels, separation, outputBuffer, numOutputSamples,
750 short left = in[inPos*numChannels];
751 short right = in[inPos*numChannels + numChannels];
783 for(int i = 0; i < numChannels; i++) {
784 outputBuffer[numOutputSamples*numChannels + i] = interpolate(pitchBuffer, position + i,
820 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples, samples, position,
843 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples + period, samples,
955 int numChannels)
957 Sonic stream = new Sonic(sampleRate, numChannels);
981 int numChannels)
983 Sonic stream = new Sonic(sampleRate, numChannels);