1
0

template.c: reformat

This commit is contained in:
Intel A80486DX2-66 2024-06-03 00:21:26 +03:00
parent 9d295685a5
commit c78966cad0
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -120,20 +120,20 @@ main(void)
"\n"
"Sample rate: " INT2STR(SAMPLE_RATE) " Hz\n"
"Channels: " INT2STR(CHANNELS)
#if CHANNELS <= 2
# if CHANNELS <= 2
" ("
# if CHANNELS == 2
# if CHANNELS == 2
"stereo"
# else
# else
"mono"
# endif
# endif
")"
#endif
# endif
"\n"
"Bit depth: "
#if !IS_SIGNED
# if !IS_SIGNED
"un"
#endif
# endif
"signed " INT2STR(BIT_DEPTH) "-bit\n"
"Duration: ");
@ -155,9 +155,9 @@ main(void)
if (samples > 0)
printf("%" PRIuMAX " samples", samples);
#if VERBOSE_MODE || SEQUENTIAL_MODE
# if VERBOSE_MODE || SEQUENTIAL_MODE
puts("\n");
#endif
# endif
fflush(stdout);
#endif
@ -306,16 +306,16 @@ main(void)
time >= gen_length_minus_1 /* or if writing last sample */) {
printf(
"%sremaining samples = %18" PRIuMAX " (%3.2Lf%% done)"
#if SEQUENTIAL_MODE
# if SEQUENTIAL_MODE
" (part %" PRIuMAX "/%" PRIuMAX ")"
#endif
# endif
,
_ANSI_CLEAR_STRING,
gen_length_minus_1 - time,
((long double) time * 100) / (long double) GEN_LENGTH
#if SEQUENTIAL_MODE
# if SEQUENTIAL_MODE
, (uintmax_t) seq + 1, (uintmax_t) MAX
#endif
# endif
);
fflush(stdout);
}
@ -326,16 +326,16 @@ main(void)
printf(_ANSI_CLEAR_STRING);
// 5. log
#if !(SEQUENTIAL_MODE && VERBOSE_MODE)
#if SEQUENTIAL_MODE
# if !(SEQUENTIAL_MODE && VERBOSE_MODE)
# if SEQUENTIAL_MODE
if (seq == 0)
#endif
# endif
puts(
#if !SEQUENTIAL_MODE
# if !SEQUENTIAL_MODE
"\n"
#endif
# endif
"Writing out file " OUTPUT_FILE "...");
#endif
# endif
fflush(stdout);
#endif
@ -364,9 +364,9 @@ main(void)
// * end of program
#if !SILENT_MODE
puts(
#if SEQUENTIAL_MODE && VERBOSE_MODE
# if SEQUENTIAL_MODE && VERBOSE_MODE
"\n"
#endif
# endif
"Done!");
#endif