How can I create a wave file from an ADC INPUT?