simplify main as much as possible
not using HTML to view (yet)
ncurses-based waveform viewer (compile as standalone)
use ncurses waveform viewer after recording

curse.c no longer standalone
accurate viewing time for ncurses waveform

using nanosleep and calculated from sample rate,
time.h required for usleep or nanosleep but time.h
not valid in c99 so we need to abandon that standard.
also the printed buffer is now the correct "page"
size of the terminal
split ncurses init and view loop
audio callback syncing with semaphores
move file-writing to another file
use <portaudio> in audioin.h
write correct sequential packet to file
nc view as threaded callback instead of whole file
no more time.h, so back to c99
cleanup simple file writer
don't compute avg, just wait until done
quicker status checking to clean up display, etc
temporarily stop writing to file
store previous-packet info
reenable file writing
circular buffer for audio input. runs indefinitely
start to GTK gui