fixes to the sample recorder and some error checking for audio recording stream.