Lines Matching refs:input
84 void local_convert_float_to_int16(const float *input, in local_convert_float_to_int16() argument
88 int32_t n = (int32_t) (*input++ * 32768.0f); in local_convert_float_to_int16()
125 sourceFloat.output.connect(&sinkI16.input); in TEST()
156 void local_convert_float_to_int32(const float *input, in local_convert_float_to_int32() argument
160 *output++ = clamp32FromFloat(*input++); in local_convert_float_to_int32()
199 sourceFloat.output.connect(&sinkI32.input); in TEST()
210 static const float input[] = {1.0f, 2.0f, 3.0f}; in TEST() local
216 sourceFloat.setData(input, 3); in TEST()
218 sourceFloat.output.connect(&monoToStereo.input); in TEST()
219 monoToStereo.output.connect(&sinkFloat.input); in TEST()
223 EXPECT_EQ(input[0], output[0]); in TEST()
224 EXPECT_EQ(input[0], output[1]); in TEST()
225 EXPECT_EQ(input[1], output[2]); in TEST()
226 EXPECT_EQ(input[1], output[3]); in TEST()
227 EXPECT_EQ(input[2], output[4]); in TEST()
228 EXPECT_EQ(input[2], output[5]); in TEST()
243 rampLinear.input.setValue(value); in TEST()
245 rampLinear.output.connect(&sinkFloat.input); in TEST()
274 static const uint8_t input[] = {0x01, 0x23, 0x45, in TEST() local
281 int numInputFrames = sizeof(input) / kBytesPerI24Packed; in TEST()
282 sourceI24.setData(input, numInputFrames); in TEST()
283 sourceI24.output.connect(&sinkI24.input); in TEST()
287 for (size_t i = 0; i < sizeof(input); i++) { in TEST()
288 EXPECT_EQ(input[i], output[i]); in TEST()
296 static const float input[] = {-9.7, 0.5f, -0.25, 1.0f, 12.3}; in TEST() local
303 int numInputFrames = sizeof(input) / sizeof(input[0]); in TEST()
304 sourceFloat.setData(input, numInputFrames); in TEST()
309 sourceFloat.output.connect(&clipper.input); in TEST()
310 clipper.output.connect(&sinkFloat.input); in TEST()
326 static const float input[] = {-0.7, 0.5, -0.25, 1.25, 1000, 2000}; in TEST() local
333 sourceFloat.setData(input, numFrames); in TEST()
335 sourceFloat.output.connect(&monoBlend.input); in TEST()
336 monoBlend.output.connect(&sinkFloat.input); in TEST()
353 float input[kNumSamples]; in TEST() local
360 input[i] = kFirstSample + i * kDeltaBetweenSamples; in TEST()
363 const int numInputFrames = std::size(input); in TEST()
364 sourceFloat.setData(input, numInputFrames); in TEST()
366 sourceFloat.output.connect(&limiter.input); in TEST()
367 limiter.output.connect(&sinkFloat.input); in TEST()
379 if (input[i] == 0.f) { in TEST()
381 } else if (input[i] > 0.0f) { in TEST()
384 EXPECT_LE(output[i], input[i]); // a limiter, gain <= 1 in TEST()
388 EXPECT_GE(output[i], input[i]); // a limiter, gain <= 1 in TEST()
390 if (-1.f <= input[i] && input[i] <= 1.f) { in TEST()
391 EXPECT_EQ(input[i], output[i]); in TEST()
398 static const float input[] = {NAN, 0.5f, NAN, NAN, -10.0f, NAN}; in TEST() local
406 const int numInputFrames = std::size(input); in TEST()
407 sourceFloat.setData(input, numInputFrames); in TEST()
409 sourceFloat.output.connect(&limiter.input); in TEST()
410 limiter.output.connect(&sinkFloat.input); in TEST()
429 sourceFloat.output.connect(&sinkI16.input); in TEST()
456 void local_convert_float_to_i8_24(const float *input, in local_convert_float_to_i8_24() argument
460 *output++ = clamp24FromFloat(*input++); in local_convert_float_to_i8_24()
481 sourceFloat.output.connect(&sinkI8_24.input); in TEST()
492 static const int32_t input[] = {1 << 23, 1 << 22, -(1 << 21), -(1 << 23), 0, 1 << 25, in TEST() local
500 int numSamples = std::size(input); in TEST()
502 sourceI8_24.setData(input, numSamples); in TEST()
503 sourceI8_24.output.connect(&sinkFloat.input); in TEST()
534 float input[inputSize]; in checkSampleRateConversionVariedSizes() local
538 input[i] = i * 1.0f / inputSize; in checkSampleRateConversionVariedSizes()
547 outputRead += flowgraph.process((void *) (input + inputUsed), in checkSampleRateConversionVariedSizes()
609 float input[inputSize]; in checkSampleRateConversionPullLater() local
613 input[i] = i * 1.0f / inputSize; in checkSampleRateConversionPullLater()
617 int outputRead = flowgraph.process((void *) input, in checkSampleRateConversionPullLater()