Sets up the audio stream to allow writing, given the number of audio channels (1 or 2) and the sample rate in kHz. The