change sample format to AudioSampleType
add a switch on UI, so that we can test recording by microphone or mixer easily.