sample program to record/play audio