[x] This could use sizeof(*cap_sample) rather than sizeof(double).
[ ] Maybe an itoa call should be made rather than having to save it as MAX_SECONDS_STR. This can be done for NUM_CHANNELS and SAMPLE_RATE, too. Not really worth it.
[x] end in the thread structs should be volatile.
[x] read_pipe should return an int to know if it failed.
[x] This could use
sizeof(*cap_sample)
rather thansizeof(double)
.[ ]
Maybe anNot really worth it.itoa
call should be made rather than having to save it asMAX_SECONDS_STR
. This can be done forNUM_CHANNELS
andSAMPLE_RATE
, too.[x]
end
in the thread structs should bevolatile
.[x]
read_pipe
should return an int to know if it failed.