template.c: silent mode fixes
This commit is contained in:
parent
160c40fc11
commit
6f99ea37e6
@ -208,7 +208,7 @@ main(void)
|
|||||||
|
|
||||||
// * write WAVE headers
|
// * write WAVE headers
|
||||||
// 0. log
|
// 0. log
|
||||||
#if VERBOSE_MODE
|
#if !SILENT_MODE && VERBOSE_MODE
|
||||||
puts("Writing WAVE headers...");
|
puts("Writing WAVE headers...");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -271,8 +271,10 @@ main(void)
|
|||||||
size_t BLOCK_SIZE = BLOCK_SIZE_BYTES / (sizeof(SAMPLE_TYPE) /
|
size_t BLOCK_SIZE = BLOCK_SIZE_BYTES / (sizeof(SAMPLE_TYPE) /
|
||||||
sizeof(uint8_t));
|
sizeof(uint8_t));
|
||||||
if (BLOCK_SIZE < 1) {
|
if (BLOCK_SIZE < 1) {
|
||||||
|
# if !SILENT_MODE
|
||||||
printf("The block size " INT2STR(BLOCK_SIZE_BYTES) " is too small, "
|
printf("The block size " INT2STR(BLOCK_SIZE_BYTES) " is too small, "
|
||||||
"should be at least %" PRIuMAX " bytes\n", MINIMUM_BLOCK_SIZE);
|
"should be at least %" PRIuMAX " bytes\n", MINIMUM_BLOCK_SIZE);
|
||||||
|
# endif
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -411,11 +413,13 @@ main(void)
|
|||||||
#if REPEAT_TIMES > 0
|
#if REPEAT_TIMES > 0
|
||||||
// * repeat as much as needed
|
// * repeat as much as needed
|
||||||
|
|
||||||
|
# if !SILENT_MODE
|
||||||
puts(
|
puts(
|
||||||
# if SEQUENTIAL_MODE
|
# if SEQUENTIAL_MODE
|
||||||
"\n"
|
"\n"
|
||||||
# endif
|
# endif
|
||||||
"Repeating...");
|
"Repeating...");
|
||||||
|
# endif
|
||||||
|
|
||||||
for (size_t counter = 0; counter < REPEAT_TIMES; counter++) {
|
for (size_t counter = 0; counter < REPEAT_TIMES; counter++) {
|
||||||
# if SEQUENTIAL_MODE
|
# if SEQUENTIAL_MODE
|
||||||
|
Loading…
Reference in New Issue
Block a user