FreeCalypso > hg > freecalypso-tools
comparison ffstools/tiaud/decomp.c @ 834:c458e33060bf
ffstools/tiaud: prep for adding support for new AEC
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 30 Jul 2021 00:10:13 +0000 |
parents | 568e2a2b49c8 |
children | 516066ac5bc1 |
comparison
equal
deleted
inserted
replaced
833:625bee54ed34 | 834:c458e33060bf |
---|---|
30 fstat(fd, &st); | 30 fstat(fd, &st); |
31 if (!S_ISREG(st.st_mode)) { | 31 if (!S_ISREG(st.st_mode)) { |
32 fprintf(stderr, "%s is not a regular file\n", filename); | 32 fprintf(stderr, "%s is not a regular file\n", filename); |
33 exit(1); | 33 exit(1); |
34 } | 34 } |
35 if (st.st_size != sizeof(struct audio_cfg_bin)) { | 35 if (st.st_size != MODE_FILE_SIZE_OLDAEC) { |
36 fprintf(stderr, "%s has the wrong length\n", filename); | 36 fprintf(stderr, "%s has the wrong length\n", filename); |
37 exit(1); | 37 exit(1); |
38 } | 38 } |
39 read(fd, &bin, sizeof bin); | 39 read(fd, &bin, MODE_FILE_SIZE_OLDAEC); |
40 close(fd); | 40 close(fd); |
41 } | 41 } |
42 | 42 |
43 emit_fir(table) | 43 emit_fir(table) |
44 uint16_t *table; | 44 uint16_t *table; |