audio: Make pregenerated resampler kaiser filter more precise.

This commit is contained in:
Ryan C. Gordon committed 2022-04-26 13:32:42 -04:00
1 parent 111c3add73
commit 5066910bf5
2 files changed
+1030 -858

No files matched your search

+4 -4
View File
@@ -141,16 +141,16 @@ int main(void)
);
printf("static const float ResamplerFilter[RESAMPLER_FILTER_SIZE] = {\n");
printf(" %ff", ResamplerFilter[0]);
printf(" %.9ff", ResamplerFilter[0]);
for (i = 0; i < RESAMPLER_FILTER_SIZE-1; i++) {
printf("%s%ff", ((i % 6) == 5) ? ",\n " : ", ", ResamplerFilter[i+1]);
printf("%s%.9ff", ((i % 5) == 4) ? ",\n " : ", ", ResamplerFilter[i+1]);
}
printf("\n};\n\n");
printf("static const float ResamplerFilterDifference[RESAMPLER_FILTER_SIZE] = {\n");
printf(" %ff", ResamplerFilterDifference[0]);
printf(" %.9ff", ResamplerFilterDifference[0]);
for (i = 0; i < RESAMPLER_FILTER_SIZE-1; i++) {
printf("%s%ff", ((i % 6) == 5) ? ",\n " : ", ", ResamplerFilterDifference[i+1]);
printf("%s%.9ff", ((i % 5) == 4) ? ",\n " : ", ", ResamplerFilterDifference[i+1]);
}
printf("\n};\n\n");
printf("/* vi: set ts=4 sw=4 expandtab: */\n\n");
File diff suppressed because it is too large. Load diff