diff --git a/src/template.c b/src/template.c index be6e0be..2a0fc9a 100644 --- a/src/template.c +++ b/src/template.c @@ -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