15 lines
382 B
C
15 lines
382 B
C
#include <stddef.h>
|
|
|
|
/* Kept as a separately testable DSP primitive. */
|
|
void xtc_dsp_gain_process(const float *input, float *output,
|
|
size_t frame_count, float gain)
|
|
{
|
|
size_t frame;
|
|
|
|
if (input == NULL || output == NULL) {
|
|
return;
|
|
}
|
|
for (frame = 0U; frame < frame_count; frame++) {
|
|
output[frame] = input[frame] * gain;
|
|
}
|
|
}
|