mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 09:15:41 +00:00
audio: Make pregenerated resampler kaiser filter more precise.
This commit is contained in:
parent
111c3add73
commit
5066910bf5
|
@ -141,16 +141,16 @@ int main(void)
|
||||||
);
|
);
|
||||||
|
|
||||||
printf("static const float ResamplerFilter[RESAMPLER_FILTER_SIZE] = {\n");
|
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++) {
|
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("\n};\n\n");
|
||||||
|
|
||||||
printf("static const float ResamplerFilterDifference[RESAMPLER_FILTER_SIZE] = {\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++) {
|
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("\n};\n\n");
|
||||||
printf("/* vi: set ts=4 sw=4 expandtab: */\n\n");
|
printf("/* vi: set ts=4 sw=4 expandtab: */\n\n");
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue