mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 07:21:03 +00:00
Make dump_modes.c include the arguments in the output.
This commit is contained in:
parent
5cfa0a0ea2
commit
11785e92c3
3 changed files with 14 additions and 6 deletions
|
@ -51,8 +51,14 @@
|
|||
void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
||||
{
|
||||
int i, j, k;
|
||||
fprintf(file, "/* The contents of this file is automatically generated by dump_modes.c\n");
|
||||
fprintf(file, " and contains static definitions for some pre-defined modes */\n");
|
||||
fprintf(file, "/* The contents of this file was automatically generated by dump_modes.c\n");
|
||||
fprintf(file, " with arguments:");
|
||||
for (i=0;i<nb_modes;i++)
|
||||
{
|
||||
CELTMode *mode = modes[i];
|
||||
fprintf(file, " %d %d",mode->Fs,mode->shortMdctSize*mode->nbShortMdcts);
|
||||
}
|
||||
fprintf(file, "\n It contains static definitions for some pre-defined modes. */\n");
|
||||
fprintf(file, "#include \"modes.h\"\n");
|
||||
fprintf(file, "#include \"rate.h\"\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue