fix microphone

There are 2 functions between close_output_stream and open_input_stream
and padding must be added