From 9d295685a5e09c024a8e05f31f7da8e1a1c981b7 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 3 Jun 2024 00:19:08 +0300 Subject: [PATCH] template.c: silent mode fixes --- src/template.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/template.c b/src/template.c index c39b4a6..be6e0be 100644 --- a/src/template.c +++ b/src/template.c @@ -164,7 +164,7 @@ main(void) // * write WAVE headers // 0. log -#if SEQUENTIAL_MODE +#if !SILENT_MODE && SEQUENTIAL_MODE puts("Writing WAVE headers..."); #endif @@ -219,8 +219,10 @@ main(void) size_t BLOCK_SIZE = BLOCK_SIZE_BYTES / (sizeof(SAMPLE_TYPE) / sizeof(uint8_t)); if (BLOCK_SIZE < 1) { +# if !SILENT_MODE printf("The block size " INT2STR(BLOCK_SIZE_BYTES) " is too small, " "should be at least %" PRIuMAX " bytes\n", MINIMUM_BLOCK_SIZE); +# endif return EXIT_FAILURE; }