0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 11:22:00 +01:00
This commit is contained in:
2024-12-30 12:33:11 +01:00
parent 754621ab9b
commit b76f96c992

View File

@@ -26,7 +26,7 @@ void stereo_s16le_to_float(const int16_t *input, float *left, float *right, size
}
void mono_s16le_to_float(const int16_t *input, float *output, size_t num_samples) {
for (size_t i = 0; i < num_samples; i++) {
output[i] = input[i * 2] * format_scale;
output[i] = input[i] * format_scale;
}
}
@@ -195,6 +195,7 @@ int main() {
}
printf("Cleaning up...\n");
pa_simple_free(input_device);
pa_simple_free(input_device_rds);
pa_simple_free(output_device);
return 0;
}