template.c: silent mode fixes
This commit is contained in:
parent
009d6365e7
commit
9d295685a5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user