Move 'delay' function and M_PI definition to a shared file
Add audio format test program