wait pcm before write
fix big ending system
print quiting on ctrl-C