2026-10-26 22:51:25 +01:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
/* Kept as a separately testable DSP primitive. */
|
2026-10-26 23:20:00 +01:00
|
|
|
void xtc_dsp_gain_process(const float *input, float *output,
|
2026-10-26 22:51:25 +01:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|